IOS connection error: internal error
tarekalmanabri opened this issue · 0 comments
tarekalmanabri commented
im getting an IOS connection error all of a sudden with the same implementation that I had before and it worked,
im using the package in Expo React native app,
here's an example of connecting to a specific network that always worked:
const connectToSomeNetwork = async () => {
const handleError = () => {
Alert.alert("error", "error", [
{
text: "retry",
onPress: () => connectToSomeNetwork(),
},
{
text: "cancel",
style: "cancel",
},
]);
};
const handleConnection = async () => {
// Extra check to make sure we're really connected to network.
// If you don't do this delay you might run into timing issues.
await WifiManager.getCurrentWifiSSID();
};
try {
await WifiManager.connectToSSID("Network-name");
await handleConnection();
} catch {
handleError();
}
};
I added all the necessary implementation in the app.config.ts, so there im not expecting the errors to be from