Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: BridgeIt 1.0.4
    • Fix Version/s: BridgeIt 1.0.5
    • Component/s: Containers
    • Labels:
      None
    • Environment:
      IOS8

      Description

      The API for UIApplication.h and registerForRemoteNotificationTypes related methods have been deprecated for IOS8. As s result we should be updated our AppDelegate class to properly handle the registration IOS8.

        Activity

        Patrick Corless created issue -
        Patrick Corless made changes -
        Field Original Value New Value
        Fix Version/s BridgeIt 1.0.5 [ 11574 ]
        Hide
        Patrick Corless added a comment -

        Update the registration code which now has a test for IOS8 and calls the appropriate methods.

        #if __IPHONE_OS_VERSION_MAX_ALLOWED >= __IPHONE_8_0
        if ([application respondsToSelector:@selector(registerUserNotificationSettings:)])

        { UIUserNotificationSettings* notificationSettings = [UIUserNotificationSettings settingsForTypes:UIUserNotificationTypeAlert categories:nil]; [[UIApplication sharedApplication] registerUserNotificationSettings:notificationSettings]; [[UIApplication sharedApplication] registerForRemoteNotifications]; }

        else

        { [[UIApplication sharedApplication] registerForRemoteNotificationTypes: UIRemoteNotificationTypeAlert]; }

        #else
        // pre IOS8 registration method
        [[UIApplication sharedApplication] registerForRemoteNotificationTypes: UIRemoteNotificationTypeAlert];
        #endif

        Show
        Patrick Corless added a comment - Update the registration code which now has a test for IOS8 and calls the appropriate methods. #if __IPHONE_OS_VERSION_MAX_ALLOWED >= __IPHONE_8_0 if ( [application respondsToSelector:@selector(registerUserNotificationSettings:)] ) { UIUserNotificationSettings* notificationSettings = [UIUserNotificationSettings settingsForTypes:UIUserNotificationTypeAlert categories:nil]; [[UIApplication sharedApplication] registerUserNotificationSettings:notificationSettings]; [[UIApplication sharedApplication] registerForRemoteNotifications]; } else { [[UIApplication sharedApplication] registerForRemoteNotificationTypes: UIRemoteNotificationTypeAlert]; } #else // pre IOS8 registration method [ [UIApplication sharedApplication] registerForRemoteNotificationTypes: UIRemoteNotificationTypeAlert]; #endif
        Hide
        Patrick Corless added a comment -

        Marking as resolved.

        Show
        Patrick Corless added a comment - Marking as resolved.
        Patrick Corless made changes -
        Status Open [ 1 ] Resolved [ 5 ]
        Resolution Fixed [ 1 ]

          People

          • Assignee:
            Patrick Corless
            Reporter:
            Patrick Corless
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: