Skip to content

When connecting to local network, cannot send HTTPS requests after loading the app with #26

@Audrey-Ann

Description

@Audrey-Ann

Hi again!

When using

"@react-native-tethering/wifi": "^1.0.0",

I am having issues when connecting to a local network using connectToLocalNetwork while testing on Android 13:

  1. Connecting the first time works and I am able to make requests to the network's private API no problem
  2. When I kill the app (close completely) and reopen the app, although my device is still connected to the local network, the api returns a "Network Error" status.
  3. It only works again if for a re-connect using connectToLocalNetwork

Then I was thinking I should disconnect to the local network before reconnecting, but:

  • When I try to disconnect in order to reconnect after using disconnectFromLocalNetwork, it returns a NetworkCallback was not registered error.

Would you have an explanation / reasons for the above issues please?

Thanks in advance. Let me know if you need more information!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions