Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can I set pingServerUrl in networkSaga by a health check API? #379

Open
pmtu95 opened this issue Oct 5, 2023 · 0 comments
Open

Can I set pingServerUrl in networkSaga by a health check API? #379

pmtu95 opened this issue Oct 5, 2023 · 0 comments

Comments

@pmtu95
Copy link

pmtu95 commented Oct 5, 2023

Current Behavior

I have an API health-check and I want to set the pingServerUrl by this API, but I always get isConnected = false. How I can use an API to replace for default pingServerUrl?
Screenshot 2023-10-05 at 15 51 22

Expected Behavior

  • use API health-check to check the internet connection.
  • the isConnected should be true

Your Environment

software version
react-native-offline 6.0.2
react-native 0.71.12
node 18.16.0
npm or yarn 9.6.6
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant