Provisional Push
UpdatedThere's a new version available!
These pages cover version 3 of our SDK, but a newer version is available. In general, we suggest that you update to the latest version to take advantage of new features and fixes.
- Are you new to our SDKs? Check out the latest docs.
- Otherwise, learn about updating to the latest version
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)
})
}
}