We want to redirect users to a custom URL within metamask mobile browser.
Using window.open(url) does not appear to be working in the metamask mobile browser.
We also tried redirecting to the users device browser using window.open(url, “_system”) but that did not work either.
How can we allow users to open a redirect link from within the metamask mobile browser?
Thanks in advance for any suggestions/guidance.
2 Likes
Hi!,
Welcome to the MM community.
Check out these docs, linking you to the start of the mobile section -
jyd1
4
Unfortunately the mobile section is missing a real E2E for linking with a mobile app.
However I cannot trigger this after the connection gets back…
function testRedirect() {
// Redirect here but it does not work.
window.open(‘intent: THE_URL#Intent;end’);
}
window.addEventListener(“load”, testRedirect);
jyd1
5
Note that this works:
javascript:window.open('intent : THE_ URL #Intent; end ');
and
window.open('intent : THE_ URL #Intent; end ');
work triggered by click on link or button
Hey! Yea I was able to make the redirect work with:
``
window.location.assign(url)
1 Like
system
Closed
7
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.