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. 
            
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
{ UIUserNotificationSettings* notificationSettings = [UIUserNotificationSettings settingsForTypes:UIUserNotificationTypeAlert categories:nil]; [[UIApplication sharedApplication] registerUserNotificationSettings:notificationSettings]; [[UIApplication sharedApplication] registerForRemoteNotifications]; }if ([application respondsToSelector:@selector(registerUserNotificationSettings:)])
else
{ [[UIApplication sharedApplication] registerForRemoteNotificationTypes: UIRemoteNotificationTypeAlert]; }#else
// pre IOS8 registration method
[[UIApplication sharedApplication] registerForRemoteNotificationTypes: UIRemoteNotificationTypeAlert];
#endif