Overview

Skill Level: Any

In order to support this the developer should specify a callback for the openSettingsForNotification variable and specify that their app includes notification settings in the APNS registration call. The Sample app includes examples of how to do this.

Prerequisites

Not what you’re looking for? Check out all our available tutorials for mobile app messaging here.

Step-by-step

  1. Specifying a callback for the openSettingsForNotification variable:

    Applications should respond to request for app settings:

    MCESdk.sharedInstance.openSettingsForNotification = ^(UNNotification *notification) {
    
    };
    

     

    Applications should inform APNS on Registration that they support notification settings:

    NSUInteger options = UNAuthorizationOptionAlert|UNAuthorizationOptionSound|UNAuthorizationOptionBadge|UNAuthorizationOptionCarPlay|UNAuthorizationOptionProvidesAppNotificationSettings;
    [center requestAuthorizationWithOptions: options completionHandler:^(BOOL granted, NSError * _Nullable error) {
    

Expected outcome

Need more help? Check out all of our available tutorials for mobile app messaging here.

Join The Discussion

Your email address will not be published. Required fields are marked *