Darth Philou Darth Philou - 1 year ago 113
iOS Question

App terminated without notice on iOS 10

I developed an app for iOS with background refresh capability.
I recompiled the app to target iOS 10.
Since then, my app is regularly terminated silently, while in suspended state, without any notice (no willTerminate get called, no jetsam event, no crash log).

It used to work well on iOS 9.
I have upgraded to 10.0.2 but see no real difference with 10.0.1.

Anyone is experiencing the same issue ? or suggestion where I should investigate ? without any report, I am completely blind and have no more idea.

And without the background refresh, my app has a major feature not working.

Thanks a lot for any help.


Answer Source

There were some changes to how iOS handles permissions in iOS 10. If the info.plist doesn't contain the appropriate keys, apps will crash silently on iOS 10.


You must statically declare your app’s intended use of protected data classes by including the appropriate purpose string keys in your Info.plist file. For example, you must include the NSCalendarsUsageDescription key to access the user’s Calendar data. If you don’t include the relevant purpose string keys, your app exits when it tries to access the data.

More info on the info.plist changes that need to be made can be found here: https://blog.xamarin.com/new-ios-10-privacy-permission-settings/?utm_medium=social&utm_campaign=blog&utm_source=facebook&utm_content=ios10-privacy

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download