Skip to content

Update gps_controller to not require location accuracy in android.#155

Open
reb1995 wants to merge 3 commits intoFoggedLens:mainfrom
reb1995:fix-android-gps-location-accuracy-requirement
Open

Update gps_controller to not require location accuracy in android.#155
reb1995 wants to merge 3 commits intoFoggedLens:mainfrom
reb1995:fix-android-gps-location-accuracy-requirement

Conversation

@reb1995
Copy link
Copy Markdown
Contributor

@reb1995 reb1995 commented Apr 6, 2026

I have only tested this for Android. I do not know how to test for iOS, however it seems like it should work.

I believe this would fix: #149.

This updates the GpsController to explicitly use Android's native hardware Location Manager instead of the Fused Location Provider (FLP). This will prevent Google Services from attempting to handle the request and asking for location accuracy. This will require a full GPS lock to function and will take longer to get a location fix vs using Location Accuracy. I believe this to be a worthy trade off with this app, though.

Adds basic target matching. If Android Do... Else use old code.
@reb1995
Copy link
Copy Markdown
Contributor Author

reb1995 commented Apr 6, 2026

Tested/confirmed working without location accuracy.

Screenshot_20260406-135548.png

Screenshot_20260406-135551.png

reb1995 added 2 commits April 12, 2026 19:39
Remove extra import that isn't required. Now passes flutter analyze.
@reb1995
Copy link
Copy Markdown
Contributor Author

reb1995 commented Apr 13, 2026

Updated the commit to remove an extra import that wasn't needed. Passing all tests now.

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

Successfully merging this pull request may close these issues.

Why does the app require location accuracy?

1 participant