Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

How do you add push notification?

Discussion in 'iOS and tvOS' started by kk93, Oct 10, 2014.

  1. kk93

    kk93

    Joined:
    Jan 17, 2014
    Posts:
    55
    Hello,

    Every time I upload my build to iTunes Connect, I get the following email:

    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 have looked at their link, but it confuses me even more. After doing some googling, I've tried adding "aps-environment" in Keychain Sharing under capabilities, but apple is still emailing me with the same message.

    My guess is that this is a problem that can be fixed with just couple clicks on XCode, but I am failing to look at the right place. Can I please get some help on this?

    Thanks!
     
  2. kk93

    kk93

    Joined:
    Jan 17, 2014
    Posts:
    55
    Well, I solved the problem through stack overflow, but since I don't know how to delete this thread, I might as well answer it in case someone sees this having the same problem.

    Basically, I needed to add entitlement to the AppID and then creating a new provisioning profile. All is done through Certificates, Identifiers & Profiles.
     
    cavila likes this.
  3. makoto_snkw

    makoto_snkw

    Joined:
    Aug 14, 2013
    Posts:
    340
    Might as well, share that stack overflow link.
     
  4. kk93

    kk93

    Joined:
    Jan 17, 2014
    Posts:
    55
    well, it wasn't just one stackoverflow link - it was a combination of several links.