log motion
This commit is contained in:
parent
4547720f0e
commit
0c91ddee85
@ -19,6 +19,7 @@ export class PhysicsService {
|
|||||||
constructor(permissionsService: PermissionsService) {
|
constructor(permissionsService: PermissionsService) {
|
||||||
|
|
||||||
navigator.geolocation.watchPosition(e => console.log(e), err => console.error(err));
|
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 => {
|
permissionsService.requestPermission('geolocation', 'gps_fixed', 'Can we use your location?').then(granted => {
|
||||||
if(granted) {
|
if(granted) {
|
||||||
|
Loading…
Reference in New Issue
Block a user