How to set kOSSettingsKeyInFocusDisplayOption?

On Android I don’t want the native alert to show up if I receive a push notification while the app is active.  The kOSSettingsKeyInFocusDisplayOption is what I want, but isn’t clear how to set this option.  A quick search of the strings in the JAR shows “OSInFocusDisplayOption” but so far I’ve been unsuccessful.  I thought I’d post here first to see if anyone else is using this setting.  I’ll also contact OneSignal directly in a little bit.

After a little more digging into the of the OneSignal plugin I found the correct setting:

    OneSignal.EnableInAppAlertNotification(false)

After a little more digging into the of the OneSignal plugin I found the correct setting:

    OneSignal.EnableInAppAlertNotification(false)

1 Like