bosK
bosK

Reputation: 41

iOS 11 accessing contacts crash

We're having issues with iOS-11 users when they try to access contacts in the app, app crashes... but could not ever succeed to reproduce the issue on our side, using devices and simulators.

Application uses AddressBook framework for retrieving the contacts, info.plist also contains all the required privacy descriptions, so we're really stuck.

Upvotes: 1

Views: 135

Answers (1)

Victor Ramos
Victor Ramos

Reputation: 175

We are experiencing the same issue with one of our apps. Some of our users are reporting crashes when searching for contacts in our app, which under the hood we use this cordova plugin: cordova-plugin-contacts. And well, this plugin uses the AddressBook Framework. I found a post in the forums of apple with users talking about it. It seems that the crashing started after iOS 11. And well, AddressBook is deprecated so there is that. The recommended way of accessing contacts should be using the latest API: CNContactStore. Apple has some documentation on how to use it.

I have some working code myself if you want to look at that.

Upvotes: 0

Related Questions