i have created a page which is optimized for iOS Safari, now i want to add a link on my page to redirect the user to the same page but by opening the safari browser, if the user is using chrome iOS. Is there a way to do it? I have found this answer(JavaScript for iPhone to open in Safari from non-default iOS browser) but it seems to be not supported anymore.
Thanks in advance for an answer.
Related
IOS webviews do not support WebRTC - only Safari on IOS does.
How can I force a page/link to open in real Safari, instead of a webview?
For example, the Gmail app opens all links inside a webview. Instead, I want them to open in Safari.
I made a webapp that has a spinner while the login form is submitted using javascript, the spinner stays on the page until the page switches. I have tested this with Safari, Chrome, Firefox on an actual computer, on Chrome and a Desktop shortcut on android, and with a desktop shortcut and on Safari for iOS.
On Safari for iOS the spinner disappears after only a second even if the login takes 2-3 seconds, but on the same device if I use the Desktop shortcut it will stay the entire time. Is there a reason that I am getting different functionality from the same webapp from the same device?
I'm helping to build a webpage that is mobile friendly. We are currently in beta and using the "Add to Homescreen" function of Safari on iOS to make the webpage appear as an app. Is there a way through javascript or html to code a link to Safari's share menu? We want to be able to access this share menu from the bookmark shortcut rather than having to be in the actual Safari browser on the phone.
This is an old question, but as of iOS Safari 12.2 and macOS Safari 12.1, Safari supports Navigator.share() to display the system share menu.
The Share menu in Safari is a component of the browser, not the web page. It cannot be linked to.
If you want your users to activate the "Add to Homescreen" function of Safari, you will need to instruct them to press the Share button themselves.
after some time googel'ing I decided to ask for help on SO.
Is there a possibilty to debug iphone/ipad mobile safari browser on windows?
I read the tip in iPhone Browser simulator for Windows? to set the user agent of safari to the one of iphone/ipad but it didn't help.
My problem is the following:
I have a page what uses JavaScript and the page works fine in:
desktop firefox + waterbox, IE, Opera, Chrome, Safari (Safari user agent), Safari (iphone/ipdad user agent)
But it the JS doesn't work when I use the page with my fully updated iphone / ipad with its up-to-date mobile safari.
I know desktop safari is only version 5 with unknown if safari 6 will ever come - so I think that the user agents of this safari version are possibly "outdated".
Any suggestions how I can debug my page under iphone/ipad circumstances to find my mistake?
Thanks in advance
There exist javascript APIs for adding bookmarks to browser using javascript, but it works only on Desktop
Firefox
window.sidebar.addPanel(location.href,document.title,"");
IE
window.external.AddFavorite(location.href,document.title);
http://www.hostingfanatic.com/webdev/add-to-bookmarks-javascript/
The above site hosts the code for it, the functionality works in Desktop FireFox and InternetExplorer but not in Desktop chrome or Safari.
The add bookmark also doesnt work on android default browser or android FireFox browser.
It also doesnt work on IOS Safari, on IPad 1 and IPad 2
Is there any javascript API that allows the add bookmark functionality programmatically via javascript in mobile browsers?
If not, is there any other way to achieve this programmatically in mobile browsers?
Also will Phonegap or rooting the android phone, help in any way to achieve this?
I am open to all views.