Phone debugging
This commit is contained in:
parent
cd4f0a53a8
commit
4abf684072
@ -17,6 +17,9 @@ export class PhysicsService {
|
|||||||
position = new BehaviorSubject<Position>(null);
|
position = new BehaviorSubject<Position>(null);
|
||||||
|
|
||||||
constructor(permissionsService: PermissionsService) {
|
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 => {
|
permissionsService.requestPermission('geolocation', 'gps_fixed', 'Can we use your location?').then(granted => {
|
||||||
if(granted) {
|
if(granted) {
|
||||||
// Gather physical data
|
// Gather physical data
|
||||||
|
Loading…
Reference in New Issue
Block a user