Skip to content

Commit

Permalink
fix(fcm): fix method name (#1531)
Browse files Browse the repository at this point in the history
  • Loading branch information
Niccolò Belli authored and ihadeed committed May 12, 2017
1 parent 45108c4 commit ad514bb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/@ionic-native/plugins/fcm/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ export interface NotificationData {
* backend.registerToken(token);
* })
*
* fcm.unsubscribeToTopic('marketing');
* fcm.unsubscribeFromTopic('marketing');
*
* ```
* @interfaces
Expand Down Expand Up @@ -101,7 +101,7 @@ export class FCM extends IonicNativePlugin {
* @returns {Promise<any>} Returns a promise resolving in result of unsubscribing from a topic
*/
@Cordova()
unsubscribeToTopic(topic: string): Promise<any> { return; }
unsubscribeFromTopic(topic: string): Promise<any> { return; }

/**
* Watch for incoming notifications
Expand Down

0 comments on commit ad514bb

Please sign in to comment.