diff --git a/src/app/app.component.ts b/src/app/app.component.ts index 34a8092..49e9cfe 100644 --- a/src/app/app.component.ts +++ b/src/app/app.component.ts @@ -42,9 +42,9 @@ export class MyApp { initializeApp() { this.platform.ready().then(() => { - // this.statusBar.styleLightContent(); - // this.initOnesignal(); - // this.enableLoc() + this.statusBar.styleLightContent(); + this.initOnesignal(); + this.enableLoc() this.languageTrans(); this.events.subscribe('driver:lang', data => { @@ -83,9 +83,9 @@ export class MyApp { this.locSubs.unsubscribe(); }) - // this.events.subscribe('driver:locOn',_=>{ - // this.liveLoc(); - // }) + this.events.subscribe('driver:locOn',_=>{ + this.liveLoc(); + }) this.storage.get('driver_data').then(data => { if (data != null) { @@ -111,12 +111,12 @@ export class MyApp { } checkStatus() { - // this.oneSignal.getIds().then((id) => { - // console.log(id.userId) - // this.myservice.load_post({deviceid:id.userId,driverid:this.local.id},'updateDeviceid').subscribe(resp=>{ - // console.log(resp) - // }) - // }) + this.oneSignal.getIds().then((id) => { + console.log(id.userId) + this.myservice.load_post({deviceid:id.userId,driverid:this.local.id},'updateDeviceid').subscribe(resp=>{ + console.log(resp) + }) + }) console.log(this.local) var This = this var query = firebase.database().ref("drivers/").orderByChild("id").equalTo((this.local.id)) diff --git a/src/app/app.html b/src/app/app.html index cbfde26..8a96fa2 100644 --- a/src/app/app.html +++ b/src/app/app.html @@ -4,7 +4,6 @@ <select [(ngModel)]="lang" (change)="changeLang(lang)"> <option value="en">EN</option> - <option value="en2">EN2</option> </select> <div menuClose class="cab_profile_banner" (click)="openPage('MyprofilePage')">