From 38ff6f2a32cf2879c7ed8ad8070c1afeccf5a64e Mon Sep 17 00:00:00 2001 From: Aaron Czichon Date: Tue, 23 Aug 2016 00:18:23 +0200 Subject: [PATCH] docs(onesignal): updated the OneSignal docs (#467) --- src/plugins/onesignal.ts | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/src/plugins/onesignal.ts b/src/plugins/onesignal.ts index 379d4bd51..365fcbb2f 100644 --- a/src/plugins/onesignal.ts +++ b/src/plugins/onesignal.ts @@ -14,13 +14,11 @@ import { Observable } from 'rxjs/Observable'; * ```typescript * import { OneSignal } from 'ionic-native'; * - * let notificationOpenedCallback(jsonData: any) { - * console.log('didReceiveRemoteNotificationCallBack: ' + JSON.stringify(jsonData)); - * }; - * * OneSignal.init('b2f7f966-d8cc-11e4-bed1-df8f05be55ba', - * {googleProjectNumber: '703322744261'}, - * notificationOpenedCallback); + * {googleProjectNumber: '703322744261'}) + * .subscribe(jsonData => { + * console.log('didReceiveRemoteNotificationCallBack: ' + JSON.stringify(jsonData)); + * }); * * OneSignal.enableInAppAlertNotification(true); * ```