IOSForegroundPresentationOptions

iOS Only

An interface to customise how notifications are shown when the app is in the foreground.


By default, Notifee will show iOS notifications in heads-up mode if your app is currently in the foreground.

View the Foreground Notifications to learn more.

Properties

alert

deprecated: Use `banner` and `list` instead

App in foreground dialog box which indicates when a decision has to be made

alert?: undefined | false | true;

Defaults to true

badge

App in foreground badge update

badge?: undefined | false | true;

Defaults to true

banner

Present the notification as a banner

banner?: undefined | false | true;

For iOS 13 and lower, will be equivalent to setting alert to true

Defaults to true

list

Show the notification in Notification Center

list?: undefined | false | true;

For iOS 13 and lower, will be equivalent to setting alert to true

Defaults to true

sound

App in foreground notification sound

sound?: undefined | false | true;

Defaults to true


Copyright 2020 - 2021 © Invertase Limited

Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 3.0 License and code samples are licensed under the Apache 2.0 License.

All product names, logos, and brands are property of their respective owners. All company, product and service names used in this website are for identification purposes only. Use of these names, logos, and brands does not imply endorsement.