Skip to main content
PFPushNotificationsPushNotificationPackage 資料模型。

語法

成員

badge   int32_t 要顯示在應用程式圖示上的數字徽章(僅限 iOS)。 customData   const char*
is null-terminated
(選擇性)這必須是 JSON 格式的物件。用於開發人員建立的自訂推播通知外掛程式。 icon   const char*
is null-terminated
(選擇性)要與訊息一起顯示的圖示檔案(iOS 不支援)。 message   const char*
is null-terminated
訊息的內容(所有平台)。 sound   const char*
is null-terminated
(選擇性)要與訊息一起播放的音效檔案(所有平台)。 title   const char*
is null-terminated
訊息的標題/主旨。iOS 不支援。

需求

標頭: PFPushNotificationsTypes.h

另請參閱

PFPushNotificationsTypes 成員
最後修改於 2026年8月28日