Daniel 2 лет назад
Родитель
Сommit
3364b9ee78
1 измененных файлов: 10 добавлений и 14 удалений
  1. +10
    -14
      src/client/app/js/app/util/OneSignal.js

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

@@ -78,20 +78,16 @@ app.util.OneSignal = (function(){
// fail silently // fail silently
} }
// Woher wissen wir welche cordova version hier aktuell läuft?
// if (cordova version == 2) {
// OneSignal
// .startInit( appId )
// .handleNotificationOpened( cbNotificationOpened )
// .endInit();
// } else {
// OneSignal.setAppId(appId);
// }
OneSignal
.startInit( appId )
.handleNotificationOpened( cbNotificationOpened )
.endInit();
if (window.navigator.userAgent === "ProBuddy/2.0 (Android)") {
// New cordova app (version 3)
OneSignal.setAppId(appId);
} else {
// Old cordova app (version 2)
OneSignal
.startInit( appId )
.handleNotificationOpened( cbNotificationOpened )
.endInit();
}
OneSignal.getIds( cbGetIds ); OneSignal.getIds( cbGetIds );
} }


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