IOSNotificationPermissions

iOS Only

An interface representing all the available permissions that can be requested by your app via the requestPermission API.


View the Permissions to learn more.

Properties

alert

Request permission to display alerts.

alert?: undefined | false | true;

Defaults to true.

announcement

iOS >= 13

Request permission for Siri to automatically read out notification messages over AirPods.

announcement?: undefined | false | true;

Defaults to false.

badge

Request permission to update the application badge.

badge?: undefined | false | true;

Defaults to true.

carPlay

Request permission to display notifications in a CarPlay environment.

carPlay?: undefined | false | true;

Defaults to true.

criticalAlert

Request permission to display critical notifications.

criticalAlert?: undefined | false | true;

View the Critical Notifications documentation for more information and usage examples.

Defaults to false.

provisional

iOS >= 12

Request permission to provisionally create non-interrupting notifications.

provisional?: undefined | false | true;

Defaults to false.

sound

Request permission to play sounds.

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.