steve5588065
Posts: 0
Joined: Tue Feb 26, 2013 6:36 am

App rejected by Apple for accessing getDeviceUniqueIdentifier in Phonegap Pushnotifications

I have submitted my app to Apple and had it rejected

Reason 'Use of getDeviceUniqueIdentifier in Pushnotifications.'
'Apps are not permitted to access the UDID and must not use the unique identifier method of UIDevice'

This code was added by Appery as part of creating the default localstorage item 'pushNotificationDeviceID'

It is used in _registerPushApperyDS as a Request Mapping

How can I resolve this so I can get my App approved

Regards
Steve

Sergey Kozyr
Posts: 0
Joined: Tue Apr 30, 2013 2:55 pm

App rejected by Apple for accessing getDeviceUniqueIdentifier in Phonegap Pushnotifications

Hi.

If you have Mac with xCode installed you could export application to xCode project and edit sources. File "CordovaLibPlugins\PushNotification\PushNotification.m"
must be changed on line 208. Instead of
codeNSString* uuid = [[UIDevice currentDevice] uniqueIdentifier];/code
must be:
codeNSString* uuid = [[[UIDevice currentDevice] identifierForVendor] UUIDString];/code

We will fix this issue in next update.

nl twixx
Posts: 0
Joined: Tue May 07, 2013 7:47 pm

App rejected by Apple for accessing getDeviceUniqueIdentifier in Phonegap Pushnotifications

Thanks, this is the solution.
No rejection from Apple anymore.
Dennis

steve5588065
Posts: 0
Joined: Tue Feb 26, 2013 6:36 am

App rejected by Apple for accessing getDeviceUniqueIdentifier in Phonegap Pushnotifications

Hi Sergey

That fixed it

Apple accepted it

Thanks

Regards
Steve

maxkatz
Posts: 0
Joined: Fri Aug 13, 2010 3:24 pm

App rejected by Apple for accessing getDeviceUniqueIdentifier in Phonegap Pushnotifications

Great! Can you send us a link to the app in the app store?

Return to “Issues”