Skip to content
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

Sending 'WatchStateChanged' with no listeners registered. (Yellow warning on iOS) #45

Open
rgreen33 opened this issue Aug 10, 2020 · 1 comment

Comments

@rgreen33
Copy link

I am using react-native-watch-connectivity on a single page in my app, simply checking to see if a watch is paired with the phone. This part works great. However, when my app now loads, I am getting a yellow warning on iOS - Sending 'WatchStateChanged' with no listeners registered. I have tried everything that I can think of, but nothing seems to make this warning go away. Can anyone tell me how you are getting around this? What am I missing? - Thanks, Ricky.

@nhtranngoc
Copy link

nhtranngoc commented Jan 24, 2021

Getting the same warning on iOS 14.3, I haven't found a fix yet, though I found that you can suppress the warnings by using LogBox.ignoreLogs() in my initialization code:

import { LogBox } from 'react-native';

LogBox.ignoreLogs([
  'Sending `WatchPairStatusChanged`',
  'Sending `WatchInstallStatusChanged`',
]);

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants