Fairoj: Geo Tag captured while submitting sales pd
This commit is contained in:
parent
9952049c66
commit
fc260d1f1b
@ -63,7 +63,7 @@ export class MyApp {
|
||||
|
||||
this.shared.getAccessToken().then(()=>{
|
||||
this.getuserDetails();
|
||||
this.rootPage = Section9
|
||||
this.rootPage = AuthPage
|
||||
}).catch(()=>{
|
||||
setTimeout(() => {
|
||||
this.rootPage = LoginPage;
|
||||
|
||||
@ -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
Loading…
Reference in New Issue
Block a user