-
-
Notifications
You must be signed in to change notification settings - Fork 115
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
[Bug]: Safari iOS: Unable to Connect within iframe after 0.27.0 Upgrade #973
Comments
Hi @andremfaria ! Thank you for reporting! I can see it working with both options though: Screen.Recording.2024-08-12.at.12.15.30.mov |
Hello @christopherferreira9, thanks for your feedback! I noticed in your video that you're not using the iframe. Could you please test it on http://local-ip:port/iframe/index.html? The issue only happens when using an iframe. |
Hi @andremfaria ! You're right, got it to reproduce going into the proper route, I'm sorry for the confusion. Will escalate to investigate. |
Hi @christopherferreira9, just an update: I tested with version |
Heu @andremfaria , this looks like an IOS limitation. Are you saying it was working on previous versions? And which one? The sdk is emitting this event: ' provider.emit('display_uri', qrcodeLink); ' which contains the link of the deeplink or qrcode. One way you could do it, is by listening for the 'display_uri' event from sdk then communicate it back to the iframe and from the iframe open the deeplink... |
Hello @abretonc7s, The last version where it worked was I'll try your suggestion and let you know the results. Thanks |
Hello @abretonc7s Although I believe this isn't an iOS limitation, as setting the version to |
Hi @andremfaria , apologies for our slow response on this. I will have a deeper look and should have a fix by Monday. |
Wait, @andremfaria did you say you now have it working? A few notes:
Please confirm that you are unblocked and everything is working. If not, please specify the remaining issue and @abretonc7s can help. |
hi @andremfaria , here is a simpler fix you can use:
Just add the opendeeplink function to the sdkOptions. |
SDK
Web
Provide environment information
web
sdk-react 0.27.0
safari 17.4
MetaMask SDK Version
0.27.0
MetaMask Mobile app Version
7.27.0
What browser are you using? (if relevant)
Safari 17.4
How are you deploying your application? (if relevant)
web
Describe the Bug
With the new version 0.27.0, if we are using an iframe and hit
sdk?.connect()
, nothing happens. This behaviour occurs in Safari on iOS.Video:
Screen.Recording.2024-07-30.at.13.16.36.mov
Expected Behavior
We should be able to connect on Safari@IOS within an Iframe.
Link to reproduction - Issues with a link to complete (but minimal) reproduction code will be addressed faster
https://github.com/andremfaria/mm-iframe/
To Reproduce
Run the Project: https://github.com/andremfaria/mm-iframe/
Open Safari on iOS:
Access the Local Server:
http://<your-local-ip>:5173/iframe/index.html
.<your-local-ip>
with your actual local IP address.Trigger the Issue:
The text was updated successfully, but these errors were encountered: