Wednesday, June 10, 2026
HomeiOS DevelopmentJavaScript verify() would not work when utilizing the variant of Safari that...

JavaScript verify() would not work when utilizing the variant of Safari that is embedded inside iOS apps (e.g. when a consumer clicks a hyperlink in FB Messenger)?

[ad_1]

Customers utilizing Safari on iOS on my web site expertise no points, in the event that they’ve manually navigated to the location utilizing Safari.

If, nonetheless, somebody has despatched them a hyperlink they usually’ve clicked it, the pseudo browser that opens up (what’s the correct identify for this please – is it WKWebView?) breaks the location. Most issues work fantastic, but when my web site throws up a verify() dialogue, nothing occurs – it would not pop up, and the consumer will get no suggestions that something has gone unsuitable, aside from their anticipated motion did not happen.

I am unclear if the pseudo-browser is unable to indicate it, or is “displaying” it erroneously exterior of the viewport someplace.

Each in native Safari and within the in-app Safari I get a loading animation of 5 dots/bars transferring left to proper subsequent to the wifi image on the prime of the cellphone. In Safari that goes once I shut the verify, in pseudo Safari there is no verify to shut, and that animation is perpetual.

How ought to I repair this?

When looking for the problem I discover loads of recommendation for individuals making iOS apps telling them learn how to enable verify()`alert()immediate()of their in-app browser, however I can not discover any Q&A geared toward site owners like myself, on learn how to handle the truth that our websites do not work in these browsers. Is the one choice to eliminate theverify()` and generate an html/css popup of my very own making?

Thanks.

[ad_2]

RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Most Popular

Recent Comments