1) This may have been addressed elsewhere (I looked everywhere and I can't find any mention of it)
2) This is posted in the wrong place (It seems to be the most likely area, perhaps I am wrong)
or
3) This is an amazingly stupid question/the answer it obvious (I'm new).
Having gotten that out of the way, I am having an issue in an app that I am constructing that needs access to the iOS built in contact list. The app intends to query the contact list, pull the individual telephone numbers and then compare them to a database with the intention of determining if any of the numbers in your contact list match up with the ones already existent in the app's database.
Upon a fresh install of the app, a script runs that is intended to get the contact information. It uses this command:
Code: Select all
mobileGetContactData contactId
The app is not accessing the contact list itself, and in Settings > Privacy > Contacts the app isn't showing at all.
However, if this command is inserted at the beginning of the script:
Code: Select all
mobilePickContact
For some reason the mechanism that inserts the app into the Contacts preferences, and triggers the appropriate dialog box is not being activated by the mobileGetContactData command.
Further testing shows that these commands that cause the user to actually interface in some way with the contact list WILL cause the dialog box (mobileCreateContact for example) but commands that "silently" get data from the contact list do not (mobileFindContact for example).
That's all great, but as it stands when my users run the app there is this awkward jarring step where they are taken out of MY interface and dropped into the contact list, where they have to touch "Cancel" to get back to my world. From a UX perspective it is not optimal.
Shouldn't any command that tries to access the contact list trigger that dialog, and as a by product insert the app into the Contact List settings? And if not, is there any way to cause that to happen that doesn't involve taking my user out of the app just to accomplish it?
Thank you for any help or direction you can provide me.