We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
discovery-android is not support multiple UUIDs. I got this error.
ReactNativeDiscovery.setShoudAdvertise got 2 arguments, expected 1
My code is below.
Discovery.setShouldAdvertise(myUUID, true); Discovery.setShouldDiscover(myUUID, true);
Work around:
I modified android/src/main/java/com/joshblour/reactnativediscovery/ReactNativeDiscoveryModule.java like below.
android/src/main/java/com/joshblour/reactnativediscovery/ReactNativeDiscoveryModule.java
/~https://github.com/yonahforst/react-native-discovery/blob/master/android/src/main/java/com/joshblour/reactnativediscovery/ReactNativeDiscoveryModule.java#L138-L149
/** * Changing these properties will start/stop advertising/discovery */ @ReactMethod public void setShouldAdvertise(String _uuid, Boolean shouldAdvertise) { mDiscovery.setShouldAdvertise(shouldAdvertise); } @ReactMethod public void setShouldDiscover(String _uuid, Boolean shouldDiscover) { mDiscovery.setShouldDiscover(shouldDiscover); }
The text was updated successfully, but these errors were encountered:
No branches or pull requests
discovery-android is not support multiple UUIDs.
I got this error.
My code is below.
Work around:
I modified
android/src/main/java/com/joshblour/reactnativediscovery/ReactNativeDiscoveryModule.java
like below./~https://github.com/yonahforst/react-native-discovery/blob/master/android/src/main/java/com/joshblour/reactnativediscovery/ReactNativeDiscoveryModule.java#L138-L149
The text was updated successfully, but these errors were encountered: