-
Notifications
You must be signed in to change notification settings - Fork 24.4k
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
openURL doesn't reject promise after pressing Cancel #24830
Comments
Tested on Android device. After click on button and choose application, app redirect correctly. Probably you want to use |
@PTROCKI - Thanks for the response, but that isn't the issue I'm reporting. The phone number by this point has already passed |
@jlocke2 do you know, if this works before ? I checked the code and I found
Reject will be call, if url is malformed or has wrong format. Probably there is a mistake in react documentation. Ios doc says: |
I do not work on React Native, I'm unsure why I was @-ed |
Hey there, it looks like there has been no activity on this issue recently. Has the issue been fixed, or does it still require the community's attention? This issue may be closed if no further activity occurs. You may also label this issue as a "Discussion" or add it to the "Backlog" and I will leave it open. Thank you for your contributions. |
Closing this issue after a prolonged period of inactivity. If this issue is still present in the latest release, please feel free to create a new issue with up-to-date information. |
Based on the documentation for openURL, I expect the returned promise to be rejected when pressing
Cancel
on the confirmation alert in iOS.React Native version:
Steps To Reproduce
openURL
on a phone number.Cancel
option.Describe what you expected to happen:
Describe what actually happens:
Snack, code example, or link to a repository:
https://snack.expo.io/S1g2RMvhE
Code snippet:
The text was updated successfully, but these errors were encountered: