platform-samples
platform-samples copied to clipboard
[Bug]: Smart Watch with Wear OS can't receive location updates, after disconnecting by BLE from paired Smartphone
Is there an existing issue for this?
- [X] I have searched the existing issues
In which area is the issue?
Location
In a specific sample?
No response
What happened?
Smart Watch (SW) with Wear OS can't receive location updates, after disconnecting by BLE from paired Smartphone. But SW already has GPS, why watches can't use this feature separately from smartphone? Or how I can implement this feature (receiving GPS updates, when we don't have BLE connection with paired smartphone)?
I've used FusedLocationProviderClient from lib (com.google.android.gms:play-services-location:21.3.0), with following parameters:
val locationRequest = LocationRequest.Builder(1_500L).apply {
setMaxUpdateAgeMillis(3_000L )
setMinUpdateIntervalMillis(1_000L )
setIntervalMillis(1_500L )
setPriority(Priority.PRIORITY_BALANCED_POWER_ACCURACY )
}.build()
and after that was installed standard LocationCallback.
Relevant logcat output
No response
Code of Conduct
- [X] I agree to follow this project's Code of Conduct