diff --git a/src/app/services/physics.service.ts b/src/app/services/physics.service.ts index 3238f59..3d3c5bf 100644 --- a/src/app/services/physics.service.ts +++ b/src/app/services/physics.service.ts @@ -17,6 +17,9 @@ export class PhysicsService { position = new BehaviorSubject(null); constructor(permissionsService: PermissionsService) { + + navigator.geolocation.watchPosition(e => console.log(e), err => console.error(err)); + permissionsService.requestPermission('geolocation', 'gps_fixed', 'Can we use your location?').then(granted => { if(granted) { // Gather physical data