chuot / rdio-scanner

Rdio Scanner is an open source software that ingest and distribute audio files generated by various software-defined radio recorders. Its interface tries to reproduce the user experience of a real police scanner, while adding its own touch.
GNU General Public License v3.0
422 stars 60 forks source link

Permanent connection even in background work #219

Closed LoveScanner closed 2 years ago

LoveScanner commented 2 years ago

Permanent connection even in background work

One of the most notable drawbacks of the app is worth noting, It does not always manage to maintain a permanent connection even when I am connected in WIFI and the communication itself is excellent, Only when the app is open in front of the screen can a permanent and stable connection be ensured It's worth thinking about how to improve a topic is a very significant drawback I'm sure not just for me.

Just for example - when using the "Zello PTT Walkie Talkie" broadcast application it always knows how to connect when the internet connection is down for a moment

chuot commented 2 years ago

First, please tell us on which OS you're running the native app and which versions of both the OS and the native app it is.

We are currently beta testing a new Android version of the native app which runs a totally different audio subsystem which aims to solve the ongoing issue with the Android native app flavor. If you wish to participate, send me a private email to my address, which is on my main GITHUB page. Make sure to send the email address that is attached to your Google Play.

As for Zello, you can't compare our native app with this one, simply because our backend is open sourced and available to everyone. Consequently, the native app has to stay compatible with the open source project which is based on websockets. Unfortunately, I cannot use platform dependent notifications because it would force me to put a private key in the open source code. That would results in having a bunch of comics sending notifications to all the native app users on behalf of the real server.

So I have to stick with websockets, which is the first thing the mobile OS wants to kill when the app is in the background. That is why on the Android platform you have an extra step compared to iOS which is to tell Android that the Rdio Scanner native app is not optimize for the battery. If you're on Android, have you done that step? If not, that could explained you issue.

chuot commented 2 years ago

native v1.8 has enhancement in that regards. It should be release on the main channel in a couple of hours.