Details
-
Type: Bug
-
Status: Resolved
-
Priority: 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 ] |
Patrick Corless
made changes -
Status | Open [ 1 ] | Resolved [ 5 ] |
Resolution | Fixed [ 1 ] |
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