fix(fcm): fix method name (#1531)

This commit is contained in:
Niccolò Belli 2017-05-12 10:15:35 +02:00 committed by Ibby Hadeed
parent 45108c4c18
commit ad514bbf63

View File

@ -49,7 +49,7 @@ export interface NotificationData {
* backend.registerToken(token);
* })
*
* fcm.unsubscribeToTopic('marketing');
* fcm.unsubscribeFromTopic('marketing');
*
* ```
* @interfaces
@ -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