You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've searched for existing GitHub issues and I saw some issues are already reporting it but I am adding additional details
I have make sure that I have last versions of telegram and IOS
I tried all the ways to open a link in javascript such as location.href=, window.open with _self, _parent, _blank, href on an element, location= or location.replace.
Description
I am using javascript and I want to redirect the user on another system application, so here is my code:
window
.open(
"https://redirect-url-there.com",
"_parent"
)
?.focus?.();
This code is working on android version but the thing is, on IOS, it works only if I add it in onclick without any intermediate function.
For example, when I call it like 1s after the button click it doesn't redirect, which is a really strange bug ? It's maybe an issue with async functions that call a redirect or something ? But it really seems that if the redirect isn't called right after the click it won't go to the system application.
It doesn't do it on android version or in any other real browser.
Also I think, if it's like 1s later, I see the loading bar that begin and go to like 1/4 and then it doesn't do anything or sometimes I see that it goes to the target site and then go back to the original one without any reason and without redirecting the user.
Note that the apps I tried with is MetaMask.
Expected Behavior
It should redirect the user
Actual Behavior
Tell us what happens instead
Steps to Reproduce
Make an html page with this code set in onclick function of any button
In the same html page set also the same but that call it 1s later for example with creating an async function and include "await new Promise((resolve) => setTimeout(resolve, 1000));" at the start of the function
Try both buttons and see the error
Environment
Device:iPhone
iOS version: last
App version:last
The text was updated successfully, but these errors were encountered:
Checklist
Description
I am using javascript and I want to redirect the user on another system application, so here is my code:
window
.open(
"https://redirect-url-there.com",
"_parent"
)
?.focus?.();
This code is working on android version but the thing is, on IOS, it works only if I add it in onclick without any intermediate function.
For example, when I call it like 1s after the button click it doesn't redirect, which is a really strange bug ? It's maybe an issue with async functions that call a redirect or something ? But it really seems that if the redirect isn't called right after the click it won't go to the system application.
It doesn't do it on android version or in any other real browser.
Also I think, if it's like 1s later, I see the loading bar that begin and go to like 1/4 and then it doesn't do anything or sometimes I see that it goes to the target site and then go back to the original one without any reason and without redirecting the user.
Note that the apps I tried with is MetaMask.
Expected Behavior
It should redirect the user
Actual Behavior
Tell us what happens instead
Steps to Reproduce
Environment
Device:
iPhone
iOS version:
last
App version:
last
The text was updated successfully, but these errors were encountered: