Просмотр исходного кода

removed debugging traces

master
Daniel 2 лет назад
Родитель
Сommit
4114a6565e
1 измененных файлов: 4 добавлений и 13 удалений
  1. +4
    -13
      src/client/app/js/app/util/OneSignal.js

+ 4
- 13
src/client/app/js/app/util/OneSignal.js Просмотреть файл

@@ -83,25 +83,18 @@ app.util.OneSignal = (function(){
if (window.navigator.userAgent === "ProBuddy/2.0 (Android)") { if (window.navigator.userAgent === "ProBuddy/2.0 (Android)") {
// New cordova app (version 3) // New cordova app (version 3)
//OneSignal.setAppId(appId);
// Uncomment to set OneSignal device logging to VERBOSE // 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. // NOTE: Update the setAppId value below with your OneSignal AppId.
OneSignal.setAppId(appId); OneSignal.setAppId(appId);
// OneSignal.setNotificationOpenedHandler(function(jsonData) {
// console.log('notificationOpenedCallback: ' + JSON.stringify(jsonData));
// });
OneSignal.setNotificationOpenedHandler(cbNotificationOpened); OneSignal.setNotificationOpenedHandler(cbNotificationOpened);
//Prompts the user for notification permissions. //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. // * 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 { } else {
// Old cordova app (version 2) // Old cordova app (version 2)
@@ -112,8 +105,6 @@ app.util.OneSignal = (function(){
OneSignal.getIds( cbGetIds ); OneSignal.getIds( cbGetIds );
} }
//OneSignal.getIds( cbGetIds );
} }
} }
, ,


Загрузка…
Отмена
Сохранить