Posts

Post not yet marked as solved
0 Replies
263 Views
The app I work on has phone numbers that can be displayed in various places and get correctly formatted as such. If I long press on them it'll bring up it brings up an action sheet where I can call the number, send a message, add it to contacts, or copy it - this is, I assume, provided as default behavior, as I'm not implementing it anywhere, and it all works as it's supposed to. However, if I 3D touch on the same phone number and hit "Add to Existing Contact", the UI freezes up and the console outputs this error:"[CNUI ERROR] Error fetching the me card: Error Domain=CNErrorDomain Code=100 "Access Denied" UserInfo={NSLocalizedDescription=Access Denied, NSLocalizedFailureReason=This application has not been granted permission to access Contacts.}"It doesn't have the same problem opening Contacts if I do it from a long press, but for some reason 3D touch throws this error. Weird, but okay, I added a key to the plist with a description for asking for Contacts permissions. Now pressing "Add to Existing Contact" will prompt for Contacts permissions and then the UI still freezes with the same error. If I kill the app and reopen it, it will still usually just freeze up with the same output, despite that in the Settings for the app it says I've allowed access to Contacts, but very occasionally it will instead open up the exact same action sheet that pops up from long pressing that will then allow me to open Contacts. This only works once though, and then it generally goes back to not working.I'm assuming this is a bug on Apple's part since this all seems to be system built-in behavior, but I wanted to try to verify before filing a bug report.
Posted Last updated
.