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) {