Foreground Notifications
Control whether notifications are displayed while your app is in the foreground on the user’s device. This setting can be set in advance at build time or changed dynamically at runtime.
You can choose to not show any notifications when your app is open in the foreground. To change this setting at runtime use the following JavaScript Bridge method:
↔️Median JavaScript Bridge
median.onesignal.enableForegroundNotifications(true | false);
Updated 12 months ago