Package | com.myflashlab.air.extensions.onesignal |
Class | public class InitSettings |
Inheritance | InitSettings Object |
Property | Defined By | ||
---|---|---|---|
autoPrompt : Boolean [write-only]
(iOS) Let OneSignal directly prompt for push notifications on init
| InitSettings | ||
autoPromptLocation : Boolean [write-only]
(Android) Prompts the user for location permissions. | InitSettings | ||
disableGmsMissingPrompt : Boolean [write-only]
(Android) Prompts the user to update/enable Google Play services if it's disabled on the device. | InitSettings | ||
filterOtherGCMReceivers : Boolean [write-only]
(Android) Enable to prevent other broadcast receivers from receiving OneSignal FCM / GCM payloads. | InitSettings | ||
inAppAlerts : Boolean [write-only]
(iOS) Enable the default in-app alerts
| InitSettings | ||
inAppLaunchURL : Boolean [write-only]
(iOS) Enable In-App display of Launch URLs
| InitSettings | ||
inFocusDisplayOption : int [write-only]
(Android + iOS) Set notification's in-focus display option. | InitSettings | ||
promptBeforeOpeningPushURL : Boolean [write-only]
(iOS) Prompt user yes/no to open URL's from push notifications | InitSettings | ||
providesAppNotificationSettings : Boolean [write-only]
(iOS) iOS 12+, Used to determine if the app is able to present it's own customized Notification Settings view. | InitSettings | ||
unsubscribeWhenNotificationsAreDisabled : Boolean [write-only]
(Android) If notifications are disabled for your app, unsubscribe the user from OneSignal. | InitSettings |
Method | Defined By | ||
---|---|---|---|
InitSettings |
autoPrompt | property |
autoPrompt:Boolean
[write-only] (iOS) Let OneSignal directly prompt for push notifications on init
public function set autoPrompt(value:Boolean):void
autoPromptLocation | property |
autoPromptLocation:Boolean
[write-only] (Android) Prompts the user for location permissions. This allows for geotagging so you can send notifications to users based on location.
public function set autoPromptLocation(value:Boolean):void
disableGmsMissingPrompt | property |
disableGmsMissingPrompt:Boolean
[write-only] (Android) Prompts the user to update/enable Google Play services if it's disabled on the device.
public function set disableGmsMissingPrompt(value:Boolean):void
filterOtherGCMReceivers | property |
filterOtherGCMReceivers:Boolean
[write-only] (Android) Enable to prevent other broadcast receivers from receiving OneSignal FCM / GCM payloads. Prevent thrown exceptions or double notifications form other libraries / SDKs that implement notifications. Other non-OneSignal payloads will still be passed through so your app can handle FCM / GCM payloads from other back-ends. Note however you can't use multiple Google Project numbers / Sender IDs. They must be the same if you are using multiple providers, otherwise there will be unexpected unsubscribes.
public function set filterOtherGCMReceivers(value:Boolean):void
inAppAlerts | property |
inAppAlerts:Boolean
[write-only] (iOS) Enable the default in-app alerts
public function set inAppAlerts(value:Boolean):void
inAppLaunchURL | property |
inAppLaunchURL:Boolean
[write-only] (iOS) Enable In-App display of Launch URLs
public function set inAppLaunchURL(value:Boolean):void
inFocusDisplayOption | property |
inFocusDisplayOption:int
[write-only] (Android + iOS) Set notification's in-focus display option.
public function set inFocusDisplayOption(value:int):void
promptBeforeOpeningPushURL | property |
promptBeforeOpeningPushURL:Boolean
[write-only] (iOS) Prompt user yes/no to open URL's from push notifications
public function set promptBeforeOpeningPushURL(value:Boolean):void
providesAppNotificationSettings | property |
providesAppNotificationSettings:Boolean
[write-only] (iOS) iOS 12+, Used to determine if the app is able to present it's own customized Notification Settings view.
public function set providesAppNotificationSettings(value:Boolean):void
unsubscribeWhenNotificationsAreDisabled | property |
unsubscribeWhenNotificationsAreDisabled:Boolean
[write-only] (Android) If notifications are disabled for your app, unsubscribe the user from OneSignal. This will happen when your users go to Settings > Apps and turn off notifications, or if they long press one of your notifications and select "block notifications".
public function set unsubscribeWhenNotificationsAreDisabled(value:Boolean):void
InitSettings | () | Constructor |
public function InitSettings()