Commit 8c9ccd3e by Alen Jose

aug-8

parent 3d5b34ba
......@@ -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))
......
......@@ -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')">
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment