traccar / traccar-client-android

Traccar Client for Android
https://www.traccar.org/client
Apache License 2.0
665 stars 736 forks source link

SOS alarm only works once per client app reboot #425

Open allifutbol opened 3 years ago

allifutbol commented 3 years ago

You need to restart the client app service to be able to send an SOS alarm again.

tananaev commented 3 years ago

I have tested the latest version of Traccar Client on a Google Pixel device. It works fine. I could send 3 alarms in 3 minutes without restating service or killing the app.

Using Android S beta version.

allifutbol commented 3 years ago

An apology for not clarifying a point, the problem occurs when the service is stopped. I uploaded a video where I show the mentioned behavior. With the service stopped it manages to send the SOS alarm but only once, then it is necessary to restart the service to send another SOS alarm.

Device: Xiaomi Mi A2 Lite Android version: 9 Traccar Client version: 6.7

https://user-images.githubusercontent.com/63820475/122675823-ce3cdd80-d1a0-11eb-97d8-b48cfd3ddccc.mp4

tananaev commented 3 years ago

I also tried stoped service and didn't have any issues.

allifutbol commented 3 years ago

Well, I suppose there will be devices that have the issue (as shown in the recording) and devices that do not. Thanks.

tananaev commented 3 years ago

I guess so. I'd need a device that has an issue to investigate.

By the way, Xiaomi is probably one of the worst options for Traccar Client because they customize a lot of standard Android behavior.

allifutbol commented 3 years ago

I chose Android One, which according to Don't kill my app! is the version that does not customize the Android layer, but we see that it still generates problems. Anyway, thank you very much for your prompt help, I respect your work a lot. Greetings from Mexico.