Reputation: 8396
Recently I've uploaded one app with push notification support successfully, and then i wanted to update other apps on the store that doesn't include push notification at all and i don't want to include this feature in it. and when i always submit it it says that :
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. If your app uses the Apple Push Notification service, make sure your App ID is enabled for Push Notification in the Provisioning Portal, and resubmit after signing your app with a Distribution provisioning profile that includes the "aps-environment" entitlement. See "Provisioning and Development" in the Local and Push Notification Programming Guide for more information. If your app does not use the Apple Push Notification service, no action is required. You may remove the API from future submissions to stop this warning. If you use a third-party framework, you may need to contact the developer for information on removing the API.
I've no idea whats happening with Xcode and this issue is so confusing check this :
Upvotes: 1
Views: 558
Reputation: 1744
You have probably introduced a 3rd party SDK that is ready for push notifications. That doesn't necessarily mean that you need to send push notifications. That's why it's only a warning and you shouldn't care. Apple tells you about it just in case you really wanted to send push notifications.
Upvotes: 0
Reputation: 2494
If you want to enable push notification in an app, you need to create fixed bundleID like: "com.appname.app"
and provisioning profile for the same.
WildCard bundle id and provisioning profile will not work for Push notification as payload needs fixed address for delivery.
So please try with the fixed BundleID and provisioning profile.
Upvotes: 0
Reputation: 38162
Please ensure that your code does not contain following methods:
- (void) application:(UIApplication*)application didRegisterForRemoteNotificationsWithDeviceToken:(NSData*)deviceToken;
- (void) application:(UIApplication*)application didFailToRegisterForRemoteNotificationsWithError:(NSError*)error;
And the method call to register for notification:
[[UIApplication sharedApplication] registerForRemoteNotificationTypes:UIRemoteNotificationTypeAlert|UIRemoteNotificationTypeBadge|UIRemoteNotificationTypeSound];
If these methods are not there then please re-create distribution provisioning profile and re-build you application with it.
Upvotes: 1
Reputation: 13600
If your ad-hoc provisioning profile has the aps-environment key, that it means your app is configured correctly in the Apple Provisioning Portal. All you need to do is delete the App Store distribution profile on your local machine, then re-download and install the distribution profile from the Provisioning Portal. This new one should contain the aps-environment key.
Make sure you have removed aps-environment key from your profile in portal.
Upvotes: 1