3

I've just uploaded an app to iTunes Connect and got the "Missing Push Notification Entitlement" warning from Apple. My app does not use any API related to push notifications. The warning also included that I do not have the aps-environment entitlement. How do I get rid of this warning? I tried disabling push notifications in the member center and in Xcode (I created a preprocessor macro DISABLE_PUSH_NOTIFICATIONS=1) and still no luck.

EDIT: I used grep in my project directory to search for couple of strings that could cause this issue. Grep matched the string

"registerForRemoteNotificationTypes"

in

./myProject.xcodeproj/project.xcworkspace/xcuserdata/myUser.xcuserdatad/UserInterfaceState.xcuserstate

I have no idea whether removing the string from this file will change anything because I am unable to upload the app to TestFlight at the moment. I will be thankful if someone has the same issue and tries to fix it by removing the string found by grep (if it's a good idea to edit .xcuserstate files...)

  • Have you enabled push notification when you create the bundle id at apple developer account? – Rupal Patel Aug 28 '15 at 11:31
  • 1
    possible duplicate of [Missing Push Notification Entitlement](http://stackoverflow.com/questions/14807129/missing-push-notification-entitlement) – Anbu.Karthik Aug 28 '15 at 11:36
  • possible duplicate of [App rejected because of "Missing Push Notification Entitlement"](http://stackoverflow.com/questions/5719182/app-rejected-because-of-missing-push-notification-entitlement) – Sanoj Kashyap Aug 28 '15 at 11:50
  • 1
    Duplicate of http://stackoverflow.com/questions/32251123/missing-push-notification-entitlement/32283844 – Sten Aug 30 '15 at 07:37

2 Answers2

0

Try re-create distribution provisioning profile and double check that you do NOT include push notification into list of entitlements

Max
  • 711
  • 5
  • 13
0

Enable push notification in your bundle Id and recreate provisioning profile .This things work for me.