Description
[REQUIRED] Step 2: Describe your environment
- Firebase Admin SDK version: 13.2.0
- Firebase Product: FCM (auth, database, storage, etc)
- Node.js version: 22.11.0
- NPM version: 10.9.2
[REQUIRED] Step 3: Describe the problem
It seems the type definition of ApnsConfig
does not contain the necessary entries for iOS Live Activities.
This is the current definition:
export interface ApnsConfig {
/**
* A collection of APNs headers. Header values must be strings.
*/
headers?: {
[key: string]: string;
};
/**
* An APNs payload to be included in the message.
*/
payload?: ApnsPayload;
/**
* Options for features provided by the FCM SDK for iOS.
*/
fcmOptions?: ApnsFcmOptions;
}
however when looking at Firebase examples such as the one here:
https://firebase.google.com/docs/cloud-messaging/ios/live-activity
we see that apns
contains a live_activity_token
attribute.
"message":{
"token": "<fcm_token:test>",
"apns":{
"live_activity_token": "<live_activity_push_to_start_token>",
"headers":{
"apns-priority": "10"
},
"payload":{
"aps": {
"timestamp": <timestamp>,
"event": "start",
"content-state": {
"demo": 1
},
"attributes-type": "DemoAttributes",
"attributes": {
"demoAttribute": 1,
},
"alert": {
"title": "test title",
"body": "test body"
}
}
}
}
}