I need my Wear OS sailing App to provide GPS updates when no phone is connected. Unfortunately despite specifying the App as standalone the GPS updates stop as soon as the Bluetooth link to the phone is lost.
The documentation indicates independent apps require standalone to be set to true. The following is the automatically generated setting in the Manifest file
<!--
Set to true if your app is Standalone, that is, it does not require the handheld
app to run.
-->
<meta-data
android:name="com.google.android.wearable.standalone"
android:value="true" />
I have not changed the default setting
Is anyone aware of other settings needed to allow Watch GPS updates even when the linked phone is not connected?
More Details
Android documentation recommends "location aware apps should use the Fused Location Provider" which is what I am using as you can review here
I was wondering if the phone was providing an internet connection. To test this I turned off the phone cellular and WiFi connections (leaving the Bluetooth connection to the Watch turned on). The watch app successfully obtained GPS location updates. However when I turned off Bluetooth the GPS updates immediately stopped. This suggests the problem is not related to internet connectivity.
When the project is created the Gradle defaults to Compile SDK 31 - I have tried reducing this to 30 but the problem remained.
The App is being run on a Samsung Galaxy Watch 4 which runs Wear OS 3 (Android 11).