Skip to content

Carnival iOS SDK 7.0.0 Release Notes

Compare
Choose a tag to compare
@samjarman samjarman released this 16 Oct 01:51

Features

Support for iPhone X, respecting the iPhone X Human Interface Guidelines:

  • Full Screen Messages shows the status bar on iPhone X
  • In App Notification appears lower, as not to be obsured by the notch on iPhone X

Bug Fixes

  • Fixes an issue with the In App Notificaiton would scale oddly if displayed during a device rotation
  • Fixes an issue with Full Screen Messages displaying oddly on rotation.
  • Fix scrollbars and landscape centering of Full Screen Messages on iPhone X

Method Removals

Removed the +startEngine:andNotificationTypes: initializer method, as this was deprecated in iOS 10. To use this manually, do

// Set up your types
if (@available(iOS 10.0, *)) {
    [[UNUserNotificationCenter currentNotificationCenter] requestAuthorizationWithOptions:types completionHandler:^(BOOL granted, NSError * _Nullable error) { // Import and link UNUserNotification framework
        NSLog(@"Granted? %d", granted);
        NSLog(@"Error? - %@", error.localizedDescription);
    }];
    [[UNUserNotificationCenter currentNotificationCenter] setDelegate:self];
} else {
    // Fallback on iOS 8-9  versions
    UIUserNotificationSettings *settings = [UIUserNotificationSettings settingsForTypes:types categories:nil];
    [[UIApplication sharedApplication] registerUserNotificationSettings:settings];
}
[[UIApplication sharedApplication] registerForRemoteNotifications];
[Carnival startEngine:@"testkey12345" registerForPushNotifications: NO]; // Start Carnival last

or, use [Carnival startEngine:@"testkey12345"]; to let us handle basic (alert, badge, sound) registration for you.

If you have any issues with the SDK, especially as iPhone X comes out, please let us know. We're happy to help.