I am working on a cordova app that does NOT use push notifications. I uploaded that app to the app store and received the following information:

Missing Push Notification Entitlement - Your app appears to include API used to register with the Apple Push Notification service, but the app signature's entitlements do not include the "aps-environment" entitlement.

Now, I would like to disable the push notification service API, but how would I do that?

I found that I could add the DISABLE_PUSH_NOTIFICATIONS compiler flag to my compiler flags, but I did not find a working manual on how/where to change them. Perhaps someone knows an easy way to change it?

Otherwise, I did find a script for a hook, but after I added that script to the before_prepare hooks, I get the error env: node\r: no such file or directory. I changed all the EOLs to UNIX style in that hook script, but the error remains.

1

There are 1 answers

3
Quentin Hayot On BEST ANSWER

Make sure that your app code does not contain any push notification related code. Like the following:

[[UIApplication sharedApplication] registerForRemoteNotificationTypes:
        (UIRemoteNotificationTypeBadge | UIRemoteNotificationTypeSound | UIRemoteNotificationTypeAlert)];

EDIT: According to this, you have to edit your Objective-C code. It's an issue with cordova.