Fairoj: Geo Tag captured while submitting sales pd

This commit is contained in:
venbatechnologies@gmail.com 2019-12-05 11:01:21 +05:30
parent 9952049c66
commit fc260d1f1b
5 changed files with 8 additions and 5 deletions

View File

@ -63,7 +63,7 @@ export class MyApp {
this.shared.getAccessToken().then(()=>{
this.getuserDetails();
this.rootPage = Section9
this.rootPage = AuthPage
}).catch(()=>{
setTimeout(() => {
this.rootPage = LoginPage;

View File

@ -801,7 +801,8 @@ console.log("rr",this.original_result_data.questions)
this.loadingProvider.pdloader('Please Wait...')
this.salesPDProvider.sendData(all_sections).then((res:any)=>{
console.log(res)
let params={pd_json:JSON.stringify(res)}
this.cameraProvider.getGeoTag().then(geo_cords=>{
let params={pd_json:JSON.stringify(res),geo_location:geo_cords}
this.salesPDProvider.saveQuestions(params).subscribe(apiresult=>{
if(apiresult['dataStatus']){
if(apiresult['records'] != true){
@ -828,6 +829,8 @@ console.log("rr",this.original_result_data.questions)
this.toastProvider.lenderappmessage('Network Error')
this.sendDatatoApi();
})
})
})
}

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long