Interface NotificationServiceInterface
Hierarchy
- NotificationServiceInterface
Methods
getAPNSToken
- getAPNSToken(): Promise<null | string>
Returns Promise<null | string>
getFCMToken
- getFCMToken(): Promise<null | string>
Returns Promise<null | string>
hasPushPermission
- hasPushPermission(): Promise<boolean>
Returns Promise<boolean>
onTokenRefresh
- onTokenRefresh(handler): Unsubscribe
Parameters
handler: ((token) => void)
- (token): void
Returns void
requestPushPermission
- requestPushPermission(): Promise<boolean>
Returns Promise<boolean>