Loading…

Provisional Push

Updated

Provisional push support is available for iOS 15 and above. Customer.io doesn’t have a specific “provisional push” feature. This is just something that iOS supports out of the box with iOS 15+. See Apple’s provisional authorization documentation to learn more.

When you request authorization for push notifications, you can include the .provisional option in the requestAuthorization call.

class NotificationUtil: NotificationUtility {
    func showPromptForPushPermission(completionHandler: @escaping (Bool) -> Void) {
        UNUserNotificationCenter.current().requestAuthorization(options: [.alert, .badge, .sound, .provisional], completionHandler: { status, _ in
            completionHandler(status)
        })
    }
}
Copied to clipboard!
  Contents
Current release
 3.8.0
Is this page helpful?