Skip to content
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

GPS switched off by default #37

Open
robbo69 opened this issue Jul 23, 2022 · 4 comments
Open

GPS switched off by default #37

robbo69 opened this issue Jul 23, 2022 · 4 comments

Comments

@robbo69
Copy link

robbo69 commented Jul 23, 2022

Currently, when app starts up the GPS on/off toggle is set to OFF. Can there be an option so that at startup the toggle is at ON? At present I have this app autostart but I still have to go to it to start up GPS - it would be nice to have this happen automatically in the background.
Thanks for a great little app by the way - only USBGPS app I could get to work reliably on my Android 10 FYT head unit.

@freshollie
Copy link
Owner

Hey!

If you are auto starting the app, have you considered using Tasker to send the intent to start the app in the background instead?

https://github.com/freshollie/UsbGps4Droid#service-behaviour

I could dedicate some time to adding this function but background start would likely be better for your usecase

@robbo69
Copy link
Author

robbo69 commented Jul 24, 2022

Thanks for the fast reply. I already start the app in the background using the Autostart app. What I want is not to have to go to UsbGps4Droid to switch on GPS but for the app to do that in the background by having the on/off GPS toggle set to on when the app starts up.

@freshollie
Copy link
Owner

freshollie commented Jul 24, 2022

I already start the app in the background using the Autostart app

Sure, but you should use an app instead which allows you to send that intent instead as that will actually start the GPS rather than just launch the application.

I can add the functionality to start on app open, but I'm currently not focused on this app so I might not get around to this for a while.

Can you try using Tasker to send an intent? There is some docs here https://tasker.joaoapps.com/userguide/en/intents.html

@robbo69
Copy link
Author

robbo69 commented Jul 25, 2022

I'll give Tasker a try but I'm not sure how it will go, as these Chinese head units hide android behind their MCU and often cripple basic functions (eg bluetooth), so I would be grateful if you could modify your app when you get time, as it would be a simpler option than adding Tasker (if it works) to start on boot.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants