From 0c91ddee85e785627e1f8a84f6643719cf221a20 Mon Sep 17 00:00:00 2001 From: ztimson Date: Tue, 27 Aug 2019 21:25:33 -0400 Subject: [PATCH] log motion --- src/app/services/physics.service.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/app/services/physics.service.ts b/src/app/services/physics.service.ts index 3d3c5bf..50fba85 100644 --- a/src/app/services/physics.service.ts +++ b/src/app/services/physics.service.ts @@ -19,6 +19,7 @@ export class PhysicsService { constructor(permissionsService: PermissionsService) { navigator.geolocation.watchPosition(e => console.log(e), err => console.error(err)); + window.addEventListener('devicemotion', e => console.log(e)); permissionsService.requestPermission('geolocation', 'gps_fixed', 'Can we use your location?').then(granted => { if(granted) {