-
Notifications
You must be signed in to change notification settings - Fork 58
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
zeroconf.watch not working on Android 9 #88
Comments
The error line appears to be here: https://github.com/becvert/cordova-plugin-zeroconf/blob/master/src/android/net/becvert/cordova/ZeroConf.java#L555 Enumeration<String> names = service.getPropertyNames();
while (names.hasMoreElements()) { I suppose the Does Android 9 change or update app permission structures? |
Does anyone have a clue on how to resolve this? It's also not working on Android 11. Are there any alternative plugins to obtain local network devices? |
Yes, as per my previous comment, https://github.com/becvert/cordova-plugin-zeroconf/blob/master/src/android/net/becvert/cordova/ZeroConf.java#L555 needs error handling and investigation. Apologies, I don't have capacity to do this at the moment :( |
Same code works on iOS. It was working on Android but suddenly it stopped. Any suggestions?
Getting this error in failure callback:
Error: Attempt to invoke interface method 'boolean java.util.Enumeration.hasMoreElements()' on a null object reference
The text was updated successfully, but these errors were encountered: