Please login to access all of the features of the Community Site.

EnablePushNotifications

M v2.0

Normally, notifications are enabled by the application automatically on launch or during the onboarding process of a new user. But sometimes you might want to display a custom page that talks about why you are going to be sending them push notifications to encourage a better response. This command allows you to initiate the request to enable push notifications.

You might want to check out the Push Notification documentation for an example of how to integrate this command with UI that updates automatically based on notifications being enabled or disabled.

The optional CommandParameter is an instance of the EnablePushNotificationsParameters object that is outlined below.

Properties

PropertyTypeDescription
EnabledMessagestringThe message that will be displayed if notifications have been enabled by the individual. Set to an empty string to not show this message. Defaults to You're all set to receive push notifications.
DisabledMessagestringThe message that will be displayed if notifications have been disabled by the individual. Set to an empty string to not show this message. Defaults to Looks like you didn't allow push notifications. If you need to turn them on you can do that in your Settings app.

Note

Be aware that Android does not ever show a popup message. Instead, it will just automatically enable notifications and then show your EnabledMessage.