Changeset View
Changeset View
Standalone View
Standalone View
keyserver/src/push/types.js
// @flow | // @flow | ||||
import apn from '@parse/node-apn'; | import apn from '@parse/node-apn'; | ||||
export type TargetedAPNsNotification = { | export type TargetedAPNsNotification = { | ||||
+notification: apn.Notification, | +notification: apn.Notification, | ||||
+deviceToken: string, | +deviceToken: string, | ||||
}; | }; | ||||
export type AndroidNotification = { | export type AndroidNotification = { | ||||
+data: { | +data: { | ||||
+id?: string, | +id?: string, | ||||
+badgeOnly?: string, | +badgeOnly?: string, | ||||
+[string]: string, | +[string]: string, | ||||
}, | }, | ||||
}; | }; | ||||
export type TargetedAndroidNotification = { | |||||
+notification: AndroidNotification, | |||||
+deviceToken: string, | |||||
}; |