Darth Philou Darth Philou - 7 days ago 6
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.

Philippe.

Answer

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.

https://developer.apple.com/library/content/releasenotes/General/WhatsNewIniOS/Articles/iOS10.html

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