Jump to content

[TOPIC: topicViewTemplate]
[GLOBAL: userSmallPhoto]
Photo

How to set kOSSettingsKeyInFocusDisplayOption?
Started by nandgate Jul 18 2019 11:25 AM

1 reply to this topic
onesignal notifications android

Best Answer nandgate , 18 July 2019 - 01:27 PM

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

 

    OneSignal.EnableInAppAlertNotification(false)
 

[TOPIC CONTROLS]
[/TOPIC CONTROLS]
[modOptionsDropdown]
[/modOptionsDropdown]
[reputationFilter]
[TOPIC: post.html]
#1

nandgate

[GLOBAL: userInfoPane.html]
nandgate
  • Enthusiast

  • 84 posts
  • Corona SDK

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.

 

 



[TOPIC: post.html]
#2

nandgate

[GLOBAL: userInfoPane.html]
nandgate
  • Enthusiast

  • 84 posts
  • Corona SDK

  Best Answer

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

 

    OneSignal.EnableInAppAlertNotification(false)
 



[topic_controls]
[/topic_controls]

Also tagged with one or more of these keywords: onesignal, notifications, android