表示可以包含在訊息中的 APN 特定選項。有關 APN 支援的各種標頭和有效負載字段,請參閱Apple 文件。
簽名:
export interface ApnsConfig
特性
財產 | 類型 | 描述 |
---|---|---|
fcm選項 | ApnsFcm選項 | 適用於 iOS 的 FCM SDK 提供的功能選項。 |
標頭 | { [鍵:字串]:字串; } | APN 標頭的集合。標頭值必須是字串。 |
有效負載 | Apns有效負載 | 要包含在訊息中的 APN 負載。 |
ApnsConfig.fcmOptions
適用於 iOS 的 FCM SDK 提供的功能選項。
簽名:
fcmOptions?: ApnsFcmOptions;
ApnsConfig.headers
APN 標頭的集合。標頭值必須是字串。
簽名:
headers?: {
[key: string]: string;
};
ApnsConfig.payload
要包含在訊息中的 APN 負載。
簽名:
payload?: ApnsPayload;