CriticalSound interface

Represents a critical sound configuration that can be included in theaps dictionary of an APNs payload.

Signature:

exportinterfaceCriticalSound

Properties

PropertyTypeDescription
criticalbooleanThe critical alert flag. Set totrue to enable the critical alert.
namestringThe name of a sound file in the app's main bundle or in theLibrary/Sounds folder of the app's container directory. Specify the string "default" to play the system sound.
volumenumberThe volume for the critical alert's sound. Must be a value between 0.0 (silent) and 1.0 (full volume).

CriticalSound.critical

The critical alert flag. Set totrue to enable the critical alert.

Signature:

critical?:boolean;

CriticalSound.name

The name of a sound file in the app's main bundle or in theLibrary/Sounds folder of the app's container directory. Specify the string "default" to play the system sound.

Signature:

name:string;

CriticalSound.volume

The volume for the critical alert's sound. Must be a value between 0.0 (silent) and 1.0 (full volume).

Signature:

volume?:number;

Except as otherwise noted, the content of this page is licensed under theCreative Commons Attribution 4.0 License, and code samples are licensed under theApache 2.0 License. For details, see theGoogle Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2022-07-29 UTC.