4 ms·
In a mobile browser, this would also be not as easy as in an app because the permission would have to be requested on-demand (or on page load), if I am not mist
by moritzwarhier 3y ago
In a mobile browser, this would also be not as easy as in an app because the permission would have to be requested on-demand (or on page load), if I am not mistaken.
E.g. this demo triggers a permission prompt:
https://sensor-js.xyz/demo.html https://sensor-js.xyz/demo.html
I also agree with your other points though.
- Atotalnoob 3y agoIt didn't trigger one on my phone...
- mgcross 3y agoMe neither, it just worked in chrome on my pixel 6. And in Brave it doesn't work and does not ask for permission. Both still ask for permission for using geolocation API.
- moritzwarhier 3y agoI was wondering about Android browsers, only quickly tested this on iOS
- sentientslug 3y agoFor me on latest iOS it does prompt the first time then it works every subsequent time without asking again
- flangola7 3y agoThank the fishes for GrapheneOS, for its sensor permission.