Commit 8c9ccd3e by Alen Jose

aug-8

parent 3d5b34ba
...@@ -42,9 +42,9 @@ export class MyApp { ...@@ -42,9 +42,9 @@ export class MyApp {
initializeApp() { initializeApp() {
this.platform.ready().then(() => { this.platform.ready().then(() => {
// this.statusBar.styleLightContent(); this.statusBar.styleLightContent();
// this.initOnesignal(); this.initOnesignal();
// this.enableLoc() this.enableLoc()
this.languageTrans(); this.languageTrans();
this.events.subscribe('driver:lang', data => { this.events.subscribe('driver:lang', data => {
...@@ -83,9 +83,9 @@ export class MyApp { ...@@ -83,9 +83,9 @@ export class MyApp {
this.locSubs.unsubscribe(); this.locSubs.unsubscribe();
}) })
// this.events.subscribe('driver:locOn',_=>{ this.events.subscribe('driver:locOn',_=>{
// this.liveLoc(); this.liveLoc();
// }) })
this.storage.get('driver_data').then(data => { this.storage.get('driver_data').then(data => {
if (data != null) { if (data != null) {
...@@ -111,12 +111,12 @@ export class MyApp { ...@@ -111,12 +111,12 @@ export class MyApp {
} }
checkStatus() { checkStatus() {
// this.oneSignal.getIds().then((id) => { this.oneSignal.getIds().then((id) => {
// console.log(id.userId) console.log(id.userId)
// this.myservice.load_post({deviceid:id.userId,driverid:this.local.id},'updateDeviceid').subscribe(resp=>{ this.myservice.load_post({deviceid:id.userId,driverid:this.local.id},'updateDeviceid').subscribe(resp=>{
// console.log(resp) console.log(resp)
// }) })
// }) })
console.log(this.local) console.log(this.local)
var This = this var This = this
var query = firebase.database().ref("drivers/").orderByChild("id").equalTo((this.local.id)) var query = firebase.database().ref("drivers/").orderByChild("id").equalTo((this.local.id))
......
...@@ -4,7 +4,6 @@ ...@@ -4,7 +4,6 @@
<select [(ngModel)]="lang" (change)="changeLang(lang)"> <select [(ngModel)]="lang" (change)="changeLang(lang)">
<option value="en">EN</option> <option value="en">EN</option>
<option value="en2">EN2</option>
</select> </select>
<div menuClose class="cab_profile_banner" (click)="openPage('MyprofilePage')"> <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