Skip to content

Conversation

fabOnReact
Copy link
Owner

Summary

  • add react-native-wear-engine dependency and HMS build configuration
  • expose Huawei connector bridging Wear Engine events to unified API
  • document Huawei setup and HMS requirements

Testing

  • yarn lint (fails: ESLint couldn't find the plugin "eslint-plugin-ft-flow")
  • yarn test (fails: Cannot find module '@react-native/babel-preset')

https://chatgpt.com/codex/tasks/task_e_68b70276d4408320968e1467a5a91c39

Copy link

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Codex Review: Here are some suggestions.

Reply with @codex fix comments to fix any unresolved comments.

About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you open a pull request for review, mark a draft as ready, or comment "@codex review". If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex fix this CI failure" or "@codex address that feedback".

Comment on lines +17 to +26
export function registerHuaweiListeners() {
if (!WearEngine || !WearEngine.addListener) {
return;
}

WearEngine.addListener('message', (payload: Payload) => {
DeviceEventEmitter.emit('message', payload);
});

WearEngine.addListener('fileTransfer', (event: any) => {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[P1] Huawei events never reach watchEvents API

registerHuaweiListeners forwards Wear Engine callbacks to DeviceEventEmitter, but the library’s public watchEvents helper listens via a NativeEventEmitter attached to the Android module. Because nothing subscribes to DeviceEventEmitter for 'message', consumers calling watchEvents.on('message') will miss Huawei messages even after registering these listeners, so the new connector doesn’t actually integrate with the existing event API.

Useful? React with 👍 / 👎.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant