diff --git a/src/client/app/js/app/util/OneSignal.js b/src/client/app/js/app/util/OneSignal.js index cea0794..022db50 100644 --- a/src/client/app/js/app/util/OneSignal.js +++ b/src/client/app/js/app/util/OneSignal.js @@ -83,25 +83,18 @@ app.util.OneSignal = (function(){ if (window.navigator.userAgent === "ProBuddy/2.0 (Android)") { // New cordova app (version 3) - //OneSignal.setAppId(appId); - // Uncomment to set OneSignal device logging to VERBOSE - OneSignal.setLogLevel(6, 0); + //OneSignal.setLogLevel(6, 0); // NOTE: Update the setAppId value below with your OneSignal AppId. OneSignal.setAppId(appId); - // OneSignal.setNotificationOpenedHandler(function(jsonData) { - // console.log('notificationOpenedCallback: ' + JSON.stringify(jsonData)); - // }); - OneSignal.setNotificationOpenedHandler(cbNotificationOpened); //Prompts the user for notification permissions. // * Since this shows a generic native prompt, we recommend instead using an In-App Message to prompt for notification permission (See step 6) to better communicate to your users what notifications they will get. - OneSignal.promptForPushNotificationsWithUserResponse(function(accepted) { - console.log("User accepted notifications: " + accepted); - }); - + // OneSignal.promptForPushNotificationsWithUserResponse(function(accepted) { + // console.log("User accepted notifications: " + accepted); + // }); } else { // Old cordova app (version 2) @@ -112,8 +105,6 @@ app.util.OneSignal = (function(){ OneSignal.getIds( cbGetIds ); } - - //OneSignal.getIds( cbGetIds ); } } ,