- Preparing search index...
- The search index is not available
Documentation
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: ((token: string) => void)): Unsubscribe
-
Parameters
-
handler: ((token: string) => void)
-
- (token: string): void
-
Returns void
requestPushPermission
- requestPushPermission(): Promise<boolean>
-
Returns Promise<boolean>