aboozaid / react-native-tethering

A React Native module for working with Wi-Fi and Hotspot. Compatible with Expo.
https://react-native-tethering.onrender.com/
MIT License
20 stars 2 forks source link

Android: getting NetworkCallback was not registered wifi tethering while trying to disconnect the local network WIFI #34

Open saisankar428 opened 4 months ago

saisankar428 commented 4 months ago

I have connected to the local network using "connectToLocal Network" method. when I am trying to disconnect from that wifi using "disconnectFromLocalNetwork" it is not disconnecting instead it is throwing an error "NetworkCallback was not registered". Can you please help me on this?

Thanks in advance.

aboozaid commented 4 months ago

which android version are you using?

saisankar428 commented 4 months ago

I'm using Android version 14, mobile VIVO X80 and One Plus 10R, Android Version 14

disconnect method i am using is "await TetheringManager.disconnectFromLocalNetwork()"

aboozaid commented 3 months ago

The library does not work probably with android 13+ as I did not make much more testing on these versions. I would like if you can debugging and see more logs which may helping finding the problem