Phone debugging

This commit is contained in:
Zakary Timson 2019-08-27 20:22:10 -04:00
parent cd4f0a53a8
commit 4abf684072

View File

@ -17,6 +17,9 @@ export class PhysicsService {
position = new BehaviorSubject<Position>(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