Significant blocation change event in ios7 - Background service call

后端 未结 1 1395
我寻月下人不归
我寻月下人不归 2021-01-21 10:04

I am using Significant location services in my app. If my app killed by system or force close by user, using event of Significant location change services I am sending location

相关标签:
1条回答
  • 2021-01-21 10:40

    As iOS 7 SDK is not under NDA anymore, I'm posting the answer here, for the sake of completion. As mentioned in answers here: Monitoring regions but location icon disappears when app is killed iOS 7 does not allow significant location changes in background, if user has killed the application in app switcher.

    More information on Apple forums, which also contains the following reply from Apple representative:

    If a user swipes up in the app switcher then the OS will not launch the app unless explicitly told to do so by the user. So no, SLC will not be launching the app, nor will silent notifications. The only thing that will launch the app at that point is the user tapping the icon. The intention here is that the user has expressed their choice of not having that app running any more for any reason, so we honor that. In this situation, there's really nothing that you can do. The next time the user launches the app you can let them know that some of the data may be missing, although you really cannot tell whether there's missing data or not (i.e. you might have been killed by the OS in the background and the user may not have moved thereby not triggering any SLC notifications). My suggestion would be to gather the data you can within the policies of the OS and if the user has manually killed the app then respect that wish and don't do anything. By all means, feel free to file a bug report if this change in behavior winds up causing problems for you or (especially) confusion for your users.

    0 讨论(0)
提交回复
热议问题