Parcourir la source

removed debugging traces

master
Daniel il y a 2 ans
Parent
révision
4114a6565e
1 fichiers modifiés avec 4 ajouts et 13 suppressions
  1. +4
    -13
      src/client/app/js/app/util/OneSignal.js

+ 4
- 13
src/client/app/js/app/util/OneSignal.js Voir le fichier

@@ -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 );
}
}
,


Chargement…
Annuler
Enregistrer