I have this requirement from client where depending on the location of the iPhone we need to send push notification. Now how can we find location of the iPhone without the app running in background? Is there anyway we can achieve this?
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试):
问题:
回答1:
With the recently-released iPhone OS 4, I believe this is now possible. See http://developer.apple.com/technologies/iphone/whats-new.html.
Edit: More useful info here. See the section entitled "Starting the Significant-Change Location Service"
回答2:
no, an SDK app must be running (and therefore in the foreground) to be able to send any location data.
.mac can do this with the locate my iphone feature, but it requires a subscription and as far as I know cant be used by an external application...