Packagecom.myflashlab.air.extensions.onesignal
Classpublic class InitSettings
InheritanceInitSettings Inheritance Object



Public Properties
 PropertyDefined 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
Public Methods
 MethodDefined By
  
InitSettings
Property Detail
autoPromptproperty
autoPrompt:Boolean  [write-only]

(iOS) Let OneSignal directly prompt for push notifications on init


Implementation
    public function set autoPrompt(value:Boolean):void
autoPromptLocationproperty 
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.


Implementation
    public function set autoPromptLocation(value:Boolean):void
disableGmsMissingPromptproperty 
disableGmsMissingPrompt:Boolean  [write-only]

(Android) Prompts the user to update/enable Google Play services if it's disabled on the device.


Implementation
    public function set disableGmsMissingPrompt(value:Boolean):void
filterOtherGCMReceiversproperty 
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.


Implementation
    public function set filterOtherGCMReceivers(value:Boolean):void
inAppAlertsproperty 
inAppAlerts:Boolean  [write-only]

(iOS) Enable the default in-app alerts


Implementation
    public function set inAppAlerts(value:Boolean):void
inAppLaunchURLproperty 
inAppLaunchURL:Boolean  [write-only]

(iOS) Enable In-App display of Launch URLs


Implementation
    public function set inAppLaunchURL(value:Boolean):void
inFocusDisplayOptionproperty 
inFocusDisplayOption:int  [write-only]

(Android + iOS) Set notification's in-focus display option.


Implementation
    public function set inFocusDisplayOption(value:int):void
promptBeforeOpeningPushURLproperty 
promptBeforeOpeningPushURL:Boolean  [write-only]

(iOS) Prompt user yes/no to open URL's from push notifications


Implementation
    public function set promptBeforeOpeningPushURL(value:Boolean):void
providesAppNotificationSettingsproperty 
providesAppNotificationSettings:Boolean  [write-only]

(iOS) iOS 12+, Used to determine if the app is able to present it's own customized Notification Settings view.


Implementation
    public function set providesAppNotificationSettings(value:Boolean):void
unsubscribeWhenNotificationsAreDisabledproperty 
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".


Implementation
    public function set unsubscribeWhenNotificationsAreDisabled(value:Boolean):void
Constructor Detail
InitSettings()Constructor
public function InitSettings()