diff --git a/src/@ionic-native/plugins/fcm/index.ts b/src/@ionic-native/plugins/fcm/index.ts index 269937abb..cbbbe006e 100644 --- a/src/@ionic-native/plugins/fcm/index.ts +++ b/src/@ionic-native/plugins/fcm/index.ts @@ -1,9 +1,8 @@ -import { Plugin, IonicNativePlugin, Cordova } from '@ionic-native/core'; import { Injectable } from '@angular/core'; +import { Cordova, IonicNativePlugin, Plugin } from '@ionic-native/core'; import { Observable } from 'rxjs/Observable'; export interface NotificationData { - /** * Determines whether the notification was pressed or not */ @@ -15,7 +14,6 @@ export interface NotificationData { */ [name: string]: any; - } /** @@ -64,14 +62,15 @@ export interface NotificationData { }) @Injectable() export class FCM extends IonicNativePlugin { - /** - * Get's device's current registration id + * Gets device's current registration id * * @returns {Promise} Returns a Promise that resolves with the registration id token */ @Cordova() - getToken(): Promise { return; } + getToken(): Promise { + return; + } /** * Event firing on the token refresh @@ -81,7 +80,9 @@ export class FCM extends IonicNativePlugin { @Cordova({ observable: true }) - onTokenRefresh(): Observable { return; } + onTokenRefresh(): Observable { + return; + } /** * Subscribes you to a [topic](https://firebase.google.com/docs/notifications/android/console-topics) @@ -91,17 +92,21 @@ export class FCM extends IonicNativePlugin { * @returns {Promise} Returns a promise resolving in result of subscribing to a topic */ @Cordova() - subscribeToTopic(topic: string): Promise { return; } + subscribeToTopic(topic: string): Promise { + return; + } /** - * Unubscribes you from a [topic](https://firebase.google.com/docs/notifications/android/console-topics) + * Unsubscribes you from a [topic](https://firebase.google.com/docs/notifications/android/console-topics) * * @param {string} topic Topic to be unsubscribed from * * @returns {Promise} Returns a promise resolving in result of unsubscribing from a topic */ @Cordova() - unsubscribeFromTopic(topic: string): Promise { return; } + unsubscribeFromTopic(topic: string): Promise { + return; + } /** * Watch for incoming notifications @@ -113,6 +118,7 @@ export class FCM extends IonicNativePlugin { successIndex: 0, errorIndex: 2 }) - onNotification(): Observable { return; } - + onNotification(): Observable { + return; + } }