enableUserNotifications
Enables user notifications on Airship and tries to prompt for the notification permission.
Parameters
consumer
A consumer that will be passed the success of the permission prompt.
open fun enableUserNotifications(promptFallback: PermissionPromptFallback, consumer: Consumer<Boolean>)
Enables user notifications on Airship and tries to prompt for the notification permission.
Parameters
promptFallback
Prompt fallback if the the notification permission is silently denied.
consumer
A consumer that will be passed the success of the permission prompt.