-
-
Notifications
You must be signed in to change notification settings - Fork 743
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Status Widget #429
Comments
@tananaev , I had some free time to look into this feature implementation, and it doesn't seem to be sophisticated.
Is this the right place? I'll test my build on the device where the system kills the application to check whether the new status widget solves the problem. |
Probably makes sense to update it somewhere inside |
OK. Same update should also be performed from |
while testing my build I've noticed that the widget isn't updated if the service started/stoped via the shortcut.
Unfortunately this approach doesn't seem to work on modern Androids (8.0+), probably because of Broadcast Limitations. |
I've managed to register for service-related intents in the code of
|
If anyone is willing to test the functionality until it is officially available, here is the test build TraccarClient-app-regular-debug-81.apk.zip |
I have tested the widget and it seems to work. It would be cool if this feature would be available in the main release. I would suggest two optimizations:
|
…date; minor refactoring of update; clean-up) traccar#429
…et with minor changes for traccar#429 # Resolved conflicts: # app/src/main/java/org/traccar/client/TrackingService.kt
It would be handy to have a widget which could show the application status - whether its service running or not.
When the widget is clicked, the main window may be opened.
Is your feature request related to a problem? Please describe.
On some smartphones with too restrictive built-in task managers (Oukitel Y4800 with Android 9 is a typical example), the application can be closed (killed) by the system despite all optimization settings (ignoring battery optimization, white-listing, etc.).
Describe the solution you'd like
A possible solution (a kind of workaround) to keep the app alive is to add an updatable widget (to the home screen), which will let system know that the app shouldn't be killed (for power optimization reasons).
Additional context
Refer to the forum thread for more details.
The text was updated successfully, but these errors were encountered: