Skip to content

Commit

Permalink
fix: fcm web
Browse files Browse the repository at this point in the history
  • Loading branch information
stewones committed Oct 3, 2022
1 parent 30b32fe commit 0c9a692
Showing 1 changed file with 16 additions and 6 deletions.
22 changes: 16 additions & 6 deletions src/web.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,25 +5,35 @@ export class FCMWeb extends WebPlugin implements FCMPlugin {
constructor() {
super({
name: 'FCM',
platforms: ['web']
platforms: ['web'],
});
}
subscribeTo(_options: { topic: string; }): Promise<{ message: string; }> {

subscribeTo(_options: { topic: string }): Promise<{ message: string }> {
throw this.unimplemented('Not implemented on web.');
}
unsubscribeFrom(_options: { topic: string; }): Promise<{ message: string; }> {

unsubscribeFrom(_options: { topic: string }): Promise<{ message: string }> {
throw this.unimplemented('Not implemented on web.');
}
getToken(): Promise<{ token: string; }> {

getToken(): Promise<{ token: string }> {
throw this.unimplemented('Not implemented on web.');
}

deleteInstance(): Promise<boolean> {
throw this.unimplemented('Not implemented on web.');
}
setAutoInit(_options: { enabled: boolean; }): Promise<void> {

setAutoInit(_options: { enabled: boolean }): Promise<void> {
throw this.unimplemented('Not implemented on web.');
}
isAutoInitEnabled(): Promise<{ enabled: boolean; }> {

isAutoInitEnabled(): Promise<{ enabled: boolean }> {
throw this.unimplemented('Not implemented on web.');
}

refreshToken(): Promise<{ token: string }> {
throw this.unimplemented('Not implemented on web.');
}
}
Expand Down

0 comments on commit 0c9a692

Please sign in to comment.