enableUserNotifications

Enables user notifications on Airship and tries to prompt for the notification permission.

Note: This does NOT enable the com.urbanairship.PrivacyManager.Feature.PUSH feature.

Parameters

consumer

A consumer that will be passed the success of the permission prompt.


fun enableUserNotifications(promptFallback: PermissionPromptFallback = PermissionPromptFallback.None)(source)

Enables user notifications on Airship and tries to prompt for the notification permission.

Note: This does NOT enable the com.urbanairship.PrivacyManager.Feature.PUSH feature.

Parameters

promptFallback

Prompt fallback if the the notification permission is silently denied.


Enables user notifications on Airship and tries to prompt for the notification permission.

Note: This does NOT enable the com.urbanairship.PrivacyManager.Feature.PUSH feature.

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.