FirebaseV1NativeMessage interface
代表 Firebase V1 介面之 HTTP JSON 訊息的目標、選項和承載。
屬性
| android | 透過 FCM 連線伺服器傳送之訊息的 Android 特定選項。 |
| apns | APNs 特定選項。 |
| condition | 傳送訊息的條件,例如主題 && 主題中的 「foo』」。 |
| data | 訊息承載的自定義機碼/值組。 |
| fcm_options | FCM 選項。 |
| notification | 通知承載的預先定義用戶可見索引鍵/值組。 |
| token | 要傳送訊息的註冊令牌。 |
| topic | 要傳送訊息的主題名稱,例如“weather”。 |
| webpush | Webpush 通訊協議選項。 |
屬性詳細資料
android
apns
condition
傳送訊息的條件,例如主題 && 主題中的 「foo』」。
condition?: string
屬性值
string
data
訊息承載的自定義機碼/值組。
data?: Record<string, string>
屬性值
Record<string, string>
fcm_options
notification
token
要傳送訊息的註冊令牌。
token?: string
屬性值
string
topic
要傳送訊息的主題名稱,例如“weather”。
topic?: string
屬性值
string