-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
[Android] Geolocation IsListeningForeground property is always false #21919
[Android] Geolocation IsListeningForeground property is always false #21919
Conversation
Do you know when this could be merged? We'd love to have this available for our business ❤️ |
Hi, it would be very useful for my project too. |
/azp run |
Azure Pipelines successfully started running 3 pipeline(s). |
Hi guys, with any luck, could someone look into the failed jobs to push this PR a bit further? The failed tests seem unrelated to the PR itself: given that the change only applies to Android platform and the failed tests aren't. |
Yeah that would also be useful for my project. |
Added device test. |
/azp run |
Azure Pipelines successfully started running 3 pipeline(s). |
@dotnet-policy-service agree |
Thank's for adding a test @jsuarezruiz ! 😄 |
Description of Change
Remove the var keyword so the targetted continousListener is the static one inside the class instead of a local variable
maui/src/Essentials/src/Geolocation/Geolocation.android.cs
Line 181 in d3335ad
continuousListener is always null, that causes the property IsListeningInForeground to be always false and making it impossible to Stop the listener
Issues Fixed
Fixes #21439