soundscape-community / soundscape-web-client

Intelligent navigation on any platform
MIT License
2 stars 2 forks source link

android app: GPS, Compass and Audio in background #33

Open sebastianovide opened 4 months ago

sebastianovide commented 4 months ago

The current Android app behaves exactly like the web app, which means that when the phone is locked, it does not receive location updates. The goal is to enable background functionality so that you can put the phone in your pocket and the app will continue to work, similar to how Google Maps operates.

sebastianovide commented 4 months ago

mm.... cannot a simple way to update the compass and location and update the sounds accordingly while the phone is locked... There are few plugins for background gps but could not find any for the compass and spatial audio...

steinbro commented 4 months ago

Geolocation is the most important one, and I expect spatial audio would not be a separate plugin from background audio more generally.

FWIW, if we do want to have it work well in a pocket, we'd have to make the orientation detection a bit more sophisticated. I believe the original app detected when the user was moving, and if so assumed the user was facing the direction they were traveling. Right now, we rely solely on the device's physical orientation, but "pointing downward" will rarely be the intended direction

sebastianovide commented 4 months ago

Geolocation is the most important one

And compass / heading

, and I expect spatial audio would not be a separate plugin from background audio more generally.

I don't know... To get the benefits that soundscape brings to the table, need to be able to adapt the sound as the user moves in real time

FWIW, if we do want to have it work well in a pocket, we'd have to make the orientation detection a bit more sophisticated. I believe the original app detected when the user was moving, and if so assumed the user was facing the direction they were traveling. Right now, we rely solely on the device's physical orientation, but "pointing downward" will rarely be the intended direction

apparently the iPhone users use the iPod so the orientation comes from them, rather than from the phone. That is what gives the user a real immersive experience feeling as if the sounds are coming from the real beacons.

steinbro commented 4 months ago

apparently the iPhone users use the iPod so the orientation comes from them, rather than from the phone. That is what gives the user a real immersive experience feeling as if the sounds are coming from the real beacons

Yeah, you're talking about the head tracking built into some headphones like EarPods. I have no idea if that sensor data is exposed to a web app.

sebastianovide commented 4 months ago

yea... it looks like it is still under discussion... :thinking: https://github.com/w3c/orientation-sensor/issues/68