daphtdazz / WebBLE

iOS WebBluetooth Polyfill
Other
113 stars 39 forks source link

Make geolocation work #19

Closed daphtdazz closed 4 years ago

daphtdazz commented 5 years ago

Currently geolocation doesn't work, hopefully just need to add a privacy request for it so people can allow WebBLE to access the location services.

gfwilliams commented 5 years ago

Is there a generic 'privacy request' API you can implement? There's other stuff (webcams, audio, etc) that would usually prompt the user in a similar way, and it'd be nice to be able to implement it all in one go (as well as enabling any new stuff that comes along later).

Gragamel commented 4 years ago

That is not needed. The app needs to tell IOS/Android it uses location. If that is enabled stanrad java script calls just provide location. You hav similair for devices compass and sensors. Theu do not require a per app setting but just genertae a pop-up the first time you use them in a webpage.

daphtdazz commented 4 years ago

Thanks @Gragamel , assuming it's that easy I can add it to the next release.

Gragamel commented 4 years ago

Dear David,

Were you able to add the location feature to the app? I just finished the development of the WEBapp game I made and now it is time to start communicating with my BT laser tag device for the final bits on IOS.

Regards,

daphtdazz commented 4 years ago

Finally I have released 1.3.1 which supports the standard geolocation APIs:

https://developer.mozilla.org/en-US/docs/Web/API/Geolocation