-
Notifications
You must be signed in to change notification settings - Fork 88
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
Fix: Allow implementers of view-controller
to set if it's connected to the internet, and reject requests when isConnectedToInternet
is false
#673
Conversation
This pull request has been linked to Shortcut Story #90966: Fix connectivity issues for react native SDKs. |
bb4735b
to
8cf80e8
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Don't forget to add this is ready check back. You can decide to keep the name checkIsReadyForRequest
or return it back to this.ready
. 👍
8cf80e8
to
253ff70
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
📦 Pull Request
Fix: Allow classes that extend
view-controller
to set if it's connected to the internet, and reject requests whenisConnectedToInternet
isfalse
.On mobile, it takes a while for the connectivity to the overlay to be established. If a method like
isLoggedIn
is called before that (i.e. on app start-up), it would reject it, which is not ideal. This fix allows you to call methods likeisLoggedIn
even before the connection is established, and wait for a response.✅ Fixed Issues
Fixes MagicSDK stopped working since yesterday: MODAL_NOT_READY or network timeout #672
🚨 Test instructions
[Describe any additional context required to test the PR/feature/bug fix.]
Please only add one label:
patch
: Bug Fix?minor
: New Feature?major
: Breaking Change?skip-release
: It's unnecessary to publish this change.📦 Published PR as canary version:
Canary Versions
✨ Test out this PR locally via: