iOS: Use Provisional Authorization to Send Trial Notifications

Please provide the following:

  1. SDK Version:37
  2. Platforms(Android/iOS/web/all): iOS

Hi,

iOS provides a mechanism to request provisional authorization for trial notifications, which allows the developer to send notifications without having to request permission beforehand. Then the user can opt to keep or turn off those notifications.

In iOS, this is simply an option on the authorization request. Does Expo support this?

UNUserNotificationCenter.current().requestAuthorization(options: [.alert, .sound, .badge, .provisional])

https://developer.apple.com/documentation/usernotifications/asking_permission_to_use_notifications#3544375

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.