9 Replies
      Latest reply on Sep 23, 2016 5:24 PM by gc.
      lseidman Level 1 Level 1 (0 points)

        When tapping on a push notification, the following method is not getting called on iOS 10 (beta 5) devices:


        func application(application: UIApplication, didReceiveRemoteNotification userInfo: [NSObject : AnyObject], fetchCompletionHandler completionHandler: (UIBackgroundFetchResult) -> Void) {...


        This prevents us from being able to use deeplinking from push messages on iOS 10. The problem occurs when using Testflight builds created with Xcode 7.3.  The method does get called successfully on iOS 9 devices.


        I have not been able to test push functionality using the Xcode 8 beta because I've consistently been getting the following error on iOS 10 devices when trying to register for push notifications:


        Error Domain=NSCocoaErrorDomain Code=3000 "no valid 'aps-environment' entitlement string found for application" UserInfo={NSLocalizedDescription=no valid 'aps-environment' entitlement string found for application}


        (I am getting this error via the didFailToRegisterForRemoteNotificationsWithError method)


        This same app and provisioning profile is able to register and obtain a deviceToken just fine on iOS 9 devices using Xcode 8 and Xcode 7.3, and it also registers successfully on iOS 10 devices if you run it using a TestFlight build created with Xcode 7.3.