Skip to content

Commit 6549859

Browse files
committed
update readme
1 parent 862875e commit 6549859

File tree

1 file changed

+7
-18
lines changed

1 file changed

+7
-18
lines changed

README.md

Lines changed: 7 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ https://github.com/fabOnReact/react-native-wear-connectivity/assets/24992535/415
1717
- [Example of implementation](#example-of-implementation)
1818
- [How to create a WearOS app using react-native](#how-to-create-a-wearos-app-using-react-native)
1919
- [API Documentation](#api-documentation)
20+
- [FAQ on Troubleshooting Errors](#faq-on-troubleshooting-errors)
2021
- [Contributing](#contributing)
2122

2223
## Installation
@@ -120,42 +121,30 @@ const unsubscribe = watchEvents.on('message', (message) => {
120121
});
121122
```
122123

123-
## FAQ
124+
## FAQ on Troubleshooting Errors
124125

125126
While some error messages are displayed on the metro server for the mobile or wearOS device (port 8082), other warnings are only available through logcat.
126127
To display them you need to open the android logcat tool from within Android Studio, where you can select the emulator and filter the messages by package name (more info in this [screenshot][41]).
127128

128-
[41] https://github.com/user-attachments/assets/87016f71-782d-4f28-88dc-2c5d013eae2f
129+
[41]: https://github.com/user-attachments/assets/87016f71-782d-4f28-88dc-2c5d013eae2f
129130

130131
#### Wearable App not installed on Mobile Device
131132

132-
The following error display if the mobile device did not install the Wearable App, which is used to pair mobile device with wearOS device.
133+
The error displays on the Metro Server if the mobile device did not install the Wear App, which is used to pair mobile device with wearOS device.
134+
The Wear app is installed from Google Play and allows to pair the Wear Device with the Android Phone. Follow this [instructions][21] to pair WearOS emulator with Android Phone.
133135

134136
```
135-
WearConnectivityModule failed to retrieve nodes with error:
136-
java.util.concurrent.ExecutionException: com.google.android.gms.common.api.ApiException: 17: API: Wearable.API is not available on this device.
137-
Connection failed with: ConnectionResult{statusCode=API_UNAVAILABLE, resolution=null, message=null}
137+
The Android mobile phone needs to install the Google Play Wear app.
138138
```
139139

140-
The Android Phone did not install the Wear OS app and did not pair with Wear OS device. Follow this [instructions][21].
141-
142140
#### wearOS device too far for bluetooth connection
143141

144-
Logcat (wearOS) includes the following warning when sending messages to the mobile device.
145-
There is no message in the Metro Server.
142+
Logcat (wearOS) shows the following log message when sending messages via bluetooth to a mobile device too far from the watch. The message is not displayed on the Metro Server.
146143

147144
```
148145
Pixel_8_Pro_API_35Device is too far for bluetooth connection.
149146
```
150147

151-
#### The mobile or wearOS device is not paired with any bluetooth device
152-
153-
Metro includes a message that no connected nodes are found message that no connected nodes are found. A node is a bluetooth device connected with another wearOS or Mobile device.
154-
155-
```logcat
156-
No connected nodes found. client: com.google.android.gms.wearable.internal.zzgo@cc11cd connectedNodes: []
157-
```
158-
159148
## Contributing
160149

161150
See the [contributing guide](CONTRIBUTING.md) to learn how to contribute to the repository and the development workflow.

0 commit comments

Comments
 (0)