Sjef Moling
Posts: 0
Joined: Thu Jan 23, 2014 10:00 am

Address book api and local storage

My app got rejected by Apple because two issues

  1. the address book api is included but not used:
    [quote:]
    "We found that the app uses the Address Book API, which allows access to the users Address Book database. This feature is not fully implemented within the app. It would be appropriate to fully use this feature, or remove it's use. If you believe that this feature is being correctly, it would be appropriate to advise us where the feature is used in the app."
    [/quote]

    How to disable the address book api?

  2. the app stores too much data
    [quote:]
    "Data that can be recreated but must persist for proper functioning of your app - or because customers expect it to be available for offline use - should be marked with the "do not back up" attribute. For NSURL objects, add the NSURLIsExcludedFromBackupKey attribute to prevent the corresponding file from being backed up. For CFURLRef objects, use the corresponding kCFURLIsExcludedFromBackupKey attribute."
    [/quote]

    The app stores data (images) for offline use in a nosql database. How to fix this issue?

Evgene Karachevtsev
Posts: 12
Joined: Mon Apr 28, 2014 1:12 pm

Address book api and local storage

Hello Sjef,

Please clarify, have you created contact_service in your app?
Please, look at this link about "do not back up" attribute: http://stackoverflow.com/a/21429129

Sjef Moling
Posts: 0
Joined: Thu Jan 23, 2014 10:00 am

Address book api and local storage

Hi Evgene,

Thanks for the link on do-not-backup

I did not create contact_service or do anything concerning contacts/addressbook. So I don't know how the api ended up in the app.

Kateryna Grynko
Posts: 0
Joined: Thu Nov 15, 2012 9:13 am

Address book api and local storage

Hi Sjef,

You can access address book this way:
http://docs.phonegap.com/en/1.4.1/pho...

Sjef Moling
Posts: 0
Joined: Thu Jan 23, 2014 10:00 am

Address book api and local storage

Hi Katya,

thanks for the respons. I don't want to use the address book, but according to apple the api is included in the .ipa source. Probably because I added and removed the contacts service and there is something left in the source. I like to remove this reminiscent parts, but don't know how.

Alena Prykhodko
Posts: 0
Joined: Tue Apr 09, 2013 7:36 am

Address book api and local storage

Hello,

Please try to delete the next code lines in config.xml file:
precode
<feature name="Contacts">
<param name="ios-package" value="CDVContacts" />
</feature>
/code/pre

Sjef Moling
Posts: 0
Joined: Thu Jan 23, 2014 10:00 am

Address book api and local storage

thanks. We'll give it a try.

Sjef Moling
Posts: 0
Joined: Thu Jan 23, 2014 10:00 am

Address book api and local storage

It got passed the revision and the app is in the store now. Thanks.

Evgene Karachevtsev
Posts: 12
Joined: Mon Apr 28, 2014 1:12 pm

Address book api and local storage

Hello Sjef,

Thank you for the update. Do not hesitate to contact us if you need any further help.

Return to “Issues”