You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Bug description:
On iOS, each time RNSimpleOpenvpn.connect() is called, it duplicates the next event received by addVpnStateListener, causing events to stack indefinitely.
It seems the issue lies in the iOS native code, as both addVpnStateListener and RNSimpleOpenvpn.observeState() are only called once.
Only closing and reopening the app resets the number of fired events, indicating that the issue lies in the native code rather than the JavaScript code. In the development build, the "Reload" button doesn't reset the number of fired events.
Expected behavior:
Events in addVpnStateListener should not be duplicated. The callback should be invoked only once per listener trigger.
Screenshots/Videos:
Environment:
OS: IOS
OS version: 18.0.1
react-native version: 0.74.5
react-native-simple-openvpn version: 2.1.2
On Android everything works just fine.
Anyone with an idea on how to fix this issue, please help!
Thank you in advance!
The text was updated successfully, but these errors were encountered:
Uh oh!
There was an error while loading. Please reload this page.
Bug description:
On iOS, each time
RNSimpleOpenvpn.connect()
is called, it duplicates the next event received byaddVpnStateListener
, causing events to stack indefinitely.To Reproduce:
It seems the issue lies in the iOS native code, as both
addVpnStateListener
andRNSimpleOpenvpn.observeState()
are only called once.Only closing and reopening the app resets the number of fired events, indicating that the issue lies in the native code rather than the JavaScript code. In the development build, the "Reload" button doesn't reset the number of fired events.
Expected behavior:
Events in
addVpnStateListener
should not be duplicated. The callback should be invoked only once per listener trigger.Screenshots/Videos:
Environment:
On Android everything works just fine.
Anyone with an idea on how to fix this issue, please help!
Thank you in advance!
The text was updated successfully, but these errors were encountered: