Uploaded image for project: 'Apache Cordova'
  1. Apache Cordova
  2. CB-8505

Missing Push Notification Entitlement when submitting IOS app to AppStore

VotersWatch issueWatchersLinkUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 4.0.0
    • None
    • cordova-ios

    Description

      If you generate a new project for IOS, there is code in AppDelegate.m that is automatically included that uses the Notification API. If your app doesn't use that and you didn't realize it was there, when you try to submit to the AppStore you get the following warning:

      Dear developer,
      We have discovered one or more issues with your recent delivery for "APP". Your delivery was successful, but you may wish to correct the following issues in your next delivery:
      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.
      After you’ve corrected the issues, you can use Xcode or Application Loader to upload a new binary to iTunes Connect.
      Regards,
      The App Store team

      Cordova should not include this by default or should have it in the code but commented out so as not to cause this warning out of the box.

      Attachments

        Issue Links

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            Unassigned Unassigned
            jhilyard@newmarketinc.com Jay Hilyard
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment