|
|
|
|
@ -50,7 +50,7 @@ export class AttendScanService {
|
|
|
|
|
this.userData = this.common.sharedService.getSharedData(AuthenticatedUser.SHARED_DATA, false);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
getDeviceLocation(callback?:(latitude: number,longitude: number) => void) {
|
|
|
|
|
getDeviceLocation() {
|
|
|
|
|
this.isFakeLocationUsed = false;
|
|
|
|
|
const isVirtual = this.device.isVirtual;
|
|
|
|
|
if (isVirtual === true) {
|
|
|
|
|
@ -69,11 +69,6 @@ export class AttendScanService {
|
|
|
|
|
}
|
|
|
|
|
this.lat = resp.latitude;
|
|
|
|
|
this.longt = resp.longitude;
|
|
|
|
|
|
|
|
|
|
if(callback != null){
|
|
|
|
|
callback(this.lat,this.longt);
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
this.attendance();
|
|
|
|
|
|
|
|
|
|
} else {
|
|
|
|
|
@ -87,11 +82,6 @@ export class AttendScanService {
|
|
|
|
|
if(resp && resp.coords.latitude && resp.coords.longitude) {
|
|
|
|
|
this.lat = resp.coords.latitude;
|
|
|
|
|
this.longt = resp.coords.longitude;
|
|
|
|
|
|
|
|
|
|
if(callback != null){
|
|
|
|
|
callback(this.lat,this.longt);
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
this.attendance();
|
|
|
|
|
|
|
|
|
|
} else {
|
|
|
|
|
|