0 Replies
      Latest reply on Feb 7, 2019 10:38 PM by andertsk
      andertsk Level 1 Level 1 (0 points)

        I set fulfill all requirements for push notifications.

        Enable this in iTunes connect and then create provision profiles.

         

        In Debug mode app calles: "didRegisterForRemoteNotificationsWithDeviceToken".

         

        But in release app calles: "didFailToRegisterForRemoteNotificationsWithError" with error:

         

        Domain=NSCocoaErrorDomain Code=3000 "no valid 'aps-environment' entitlement string found for application"

         

        In project i have xxx.entitlements with:

         

        <dict>

          <key>aps-environment</key>

          <string>production</string>

        </dict>

         

        And my xxx.mobileprovision contains this strings:

         

        <key>Entitlements</key>

        <dict>

                        <key>keychain-access-groups</key>

                        <array>

                                <string>XXXXXXXXXX.*</string>

                        </array>

                        <key>get-task-allow</key>

                        <false/>

                        <key>application-identifier</key>

                        <string>XXXXXXXXXXX</string>

                        <key>com.apple.developer.team-identifier</key>

                        <string>XXXXXXXXXXX</string>

                        <key>aps-environment</key>

                        <string>production</string>

        </dict>

         

        Can anyone tell me what caused this error? Thanks in advance!