Changeset View
Changeset View
Standalone View
Standalone View
keyserver/flow-typed/npm/@parse/node-apn_vx.x.x.js
Show All 21 Lines | declare export class Notification { | ||||
topic: string; | topic: string; | ||||
id: string; | id: string; | ||||
expiry: number; | expiry: number; | ||||
priority: number; | priority: number; | ||||
collapseId: string; | collapseId: string; | ||||
pushType: NotificationPushType; | pushType: NotificationPushType; | ||||
threadId: string; | threadId: string; | ||||
payload: any; | payload: any; | ||||
badge: number; | badge: ?number; | ||||
sound: string; | sound: string; | ||||
contentAvailable: boolean; | contentAvailable: boolean; | ||||
mutableContent: boolean; | mutableContent: boolean; | ||||
urlArgs: string[]; | urlArgs: string[]; | ||||
// Detailed explanation of this field can be found here: | |||||
// https://developer.apple.com/documentation/usernotifications/setting_up_a_remote_notification_server/generating_a_remote_notification?language=objc#2943363 | |||||
// More fields can be added here, if they ever need to | |||||
// be accessed from apn.Notification instance | |||||
aps: { | |||||
+badge: string | number, | |||||
+alert: string, | |||||
+'thread-id': string, | |||||
+'mutable-content': boolean, | |||||
+sound: string, | |||||
... | |||||
}; | |||||
} | } | ||||
declare type ProviderToken = {| | declare type ProviderToken = {| | ||||
+key: string, | +key: string, | ||||
+keyId: string, | +keyId: string, | ||||
+teamId: string, | +teamId: string, | ||||
|}; | |}; | ||||
declare export type ProviderOptions = { | declare export type ProviderOptions = { | ||||
▲ Show 20 Lines • Show All 398 Lines • Show Last 20 Lines |