Send feedback
Aps interface
Stay organized with collections
Save and categorize content based on your preferences.
Represents the aps dictionary that is part of APNs messages.
Signature:
export interface Aps
Properties
Property
Type
Description
alert
string | ApsAlert
Alert to be included in the message. This may be a string or an object of type admin.messaging.ApsAlert.
badge
number
Badge to be displayed with the message. Set to 0 to remove the badge. When not specified, the badge will remain unchanged.
category
string
Type of the notification.
contentAvailable
boolean
Specifies whether to configure a background update notification.
mutableContent
boolean
Specifies whether to set the mutable-content property on the message so the clients can modify the notification via app extensions.
sound
string | CriticalSound
Sound to be played with the message.
threadId
string
An app-specific identifier for grouping notifications.
Aps.alert
Alert to be included in the message. This may be a string or an object of type admin.messaging.ApsAlert.
Signature:
alert? : string | ApsAlert ;
Aps.badge
Badge to be displayed with the message. Set to 0 to remove the badge. When not specified, the badge will remain unchanged.
Signature:
badge? : number ;
Aps.category
Type of the notification.
Signature:
category? : string ;
Aps.contentAvailable
Specifies whether to configure a background update notification.
Signature:
contentAvailable? : boolean ;
Aps.mutableContent
Specifies whether to set the mutable-content property on the message so the clients can modify the notification via app extensions.
Signature:
mutableContent? : boolean ;
Aps.sound
Sound to be played with the message.
Signature:
sound? : string | CriticalSound ;
Aps.threadId
An app-specific identifier for grouping notifications.
Signature:
threadId? : string ;
Send feedback
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License , and code samples are licensed under the Apache 2.0 License . For details, see the Google Developers Site Policies . Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2022-07-29 UTC.
Need to tell us more?
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2022-07-29 UTC."],[],[]]