react-native-tethering icon indicating copy to clipboard operation
react-native-tethering copied to clipboard

[Android 13] saveNetworkInDevice error not triggered if already saved

Open Audrey-Ann opened this issue 2 years ago • 2 comments

Testing with Android 13, when calling saveNetworkInDevice (when the local network was already successfully saved using that same function) doesn't trigger/throw the error ERR_NETWORK_SAVED specified in the documentation.

How can I make sure to get that error in order to fallback into the regular connectToLocalNetwork if it's already saved?

Thanks in advance again for your help!

Audrey-Ann avatar Oct 24 '23 15:10 Audrey-Ann

Could you please do some debugging on saveNetworkInDevice at native side? I think it's related to Android 13 version maybe another error being thrown

aboozaid avatar Oct 25 '23 16:10 aboozaid

@aboozaid I'll debug it and let you know.. can you share any useful guidance from the native module? Otherwise I'll add a bunch of break points and let you know hopefully soon.

Audrey-Ann avatar Oct 25 '23 19:10 Audrey-Ann