iOS 5 中来自后台地理围栏的通知?

2023-03-21移动开发问题
4

本文介绍了iOS 5 中来自后台地理围栏的通知?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

问题描述

目前是否可以创建一个在我上班时提醒我,Siri"的应用程序?还是需要运行应用才能应用地理围栏?

Is it currently possible to create an app that "reminds me when I get to work, Siri" right now ? Or the app needs to be running to apply geofencing ?

推荐答案

是的,可以通过使用 CLLocationManager 的 startMonitoringForRegion当进入/离开某个围栏"地理区域时,它将调用您的应用程序.

Yes, it is possible by using the CLLocationManager's startMonitoringForRegion which will call your App when entered/left a certain "fenced" geo-area.

但是因为用户的位置被/将被使用,只要这个调用被取消(通过匹配的 stopMonitoringForRegion),位置图标就会出现

BUT since the user's location is/will be used, the location icon will appear for as long as this call has yet been canceled (by the matching stopMonitoringForRegion)

(在 iOS6 上,此图标将被替换为区域"位置的不同位置图标,而不是常规位置使用 - 看起来像当前图标的轮廓)

(on iOS6 this icon will be replaced with a different location icon for "regional" location instead of regular location use - looks like an outline of the current icon)

这篇关于iOS 5 中来自后台地理围栏的通知?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

The End

相关推荐

硬件音量按钮更改应用程序音量
Hardware Volume buttons change in app volume(硬件音量按钮更改应用程序音量)...
2024-08-12 移动开发问题
10

Cocos2d - 如何检查不同层中对象之间的交集
Cocos2d - How to check for Intersection between objects in different layers(Cocos2d - 如何检查不同层中对象之间的交集)...
2024-08-12 移动开发问题
8

恢复游戏 cocos2d
Resume game cocos2d(恢复游戏 cocos2d)...
2024-08-12 移动开发问题
6

突出显示朗读文本(在 iPhone 的故事书类型应用程序中)
Highlight Read-Along Text (in a storybook type app for iPhone)(突出显示朗读文本(在 iPhone 的故事书类型应用程序中))...
2024-08-12 移动开发问题
9

Cocos2D + 仅禁用 Retina iPad 图形
Cocos2D + Disabling only Retina iPad Graphics(Cocos2D + 仅禁用 Retina iPad 图形)...
2024-08-12 移动开发问题
10

如何将 32 位 PNG 转换为 RGB565?
How to convert 32 bit PNG to RGB565?(如何将 32 位 PNG 转换为 RGB565?)...
2024-08-12 移动开发问题
21