Can I send push notification on iPhone based on it

2019-03-21 21:58发布

问题:

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...