From 4abf684072c4f66ff7d5b95fae1f17e08bd0b4be Mon Sep 17 00:00:00 2001 From: ztimson Date: Tue, 27 Aug 2019 20:22:10 -0400 Subject: [PATCH] Phone debugging --- src/app/services/physics.service.ts | 3 +++ 1 file changed, 3 insertions(+) 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