This question already has answers here:
Closed 10 years ago.
Possible Duplicate:
phonegap: open an external link in Safari not the app's UIWebView
I have made an HTML5 application for my Ipad. this is made native with phonegap.
On my application, I have som external links to web pages.
However when I open these links, the external web-page is opened in my application, and since my Ipad doesn't have a 'back-button', there is no way to go back to my application. Even when I close the application, and then open it again, the external web-page is opened.
I have tried to solve the problem with a childbrowser, but I get the same problem with that.
Here is the code I used:
openChildBrowser('http://en.wikipedia.org/wiki/Lapis_lazuli',{ showLocationBar: true });">text here</a>
and:
<a onclick= "window.plugins.childBrowser.showWebPage('http://en.wikipedia.org/wiki/Lapis_lazuli',{showLocationBar: true});">text here</a>
and I have ofcourse tried regular a href.
Do anyone have a solution to my problem?
Thanks for your time :)
I had the exact same problem. I solved it by adding target="_blank" inside the a-tag like this.
text here
Hope this helps.
Related
I have the following problem:
I have a PWA in iOS and I want to open an external link(<a>...</a>) (Not as a PWA window) as a download link. A new window opens, but unfortunately I can't get back into the PWA. I am virtually stuck in the iOS download window.
Using target="_blank" does not help unfortunately.
Does anyone have the same problem and know how to solve it?
Many kind regards
I'm making a simple tweak for jailbroken iOS devices running iOS 13, which adds a "Paste and Go" option when you force touch web browsers.
I've managed to make it work with Safari, but the problem comes when I try to use it with other Web browsers. I manage to show the option, but I can't make the web browser to open the link.
I'm posting this here as this is more of a normal programming question than a jailbreaking question because I'm sure there's a way to do this in stock iOS.
Thanks in advance, and sorry if this is a dumb question.
We are currently developing a PWA for a client of ours. Everything has been going well, but while testing on iPhone (iOS 12.2) we are having an issue with the tags that have sms:123-456-7890 in the href. You get the "Safari cannot open this page because of the sms: tag" (paraphrasing).
If you are browsing the site via Safari (not in the PWA mode), the anchor tag works fine and your iMessage opens up with the number in it. But when you're in the PWA mode and click the link, you get a version of the message I mentioned above.
From doing research, this appears to be some sort of bug in the iOS 12.2 release, though not officially mentioned.
I'm curious if anyone has had any luck with a work-around for this issue?
Thanks in advance.
Edit..to add some code for the anchor tag....
123-456-7890
I've tried many different variations of the sms (with no // or ;), always same outcome when clicking it as a PWA. With Android, everything works fine in PWA mode.
I did find a workaround by using JavaScript
Code Example:
<a href="#" onclick="openSMSMobile();" >
function openSMSMobile(e) {
window.open('sms:1234567890', '_self');
return false;
}
And in case anyone is wondering, if you'd like to add text to the message body, you can use,
window.open('sms:1234567890&body=textGoesHere', '_self');
For Android you'll need,
window.open('sms:1234567890&body=textGoesHere', '_self');
Is there a deep link that will open a page in Safari from another app?
I have tried
safari://https://www.google.com
safari://www.google.com
but it doesn't work. I get the pop-up asking if I want to leave the current app, but Safari doesn't open.
This is the equivalent for Chrome, which works:
googlechrome://www.google.com
safari-https://www.google.com ...
is the simple solution to this issue
Problem
Greetings Stack Overflow community.
I have an issue with the iOS.
Currently, I am working in a web application with a mobile skin full responsive.
In the PC version everything works fine, same happening with android. Everything run's without any problem. But with the iOS I have some issues.
First, I had a bug with the file upload. I couldn't upload any file. I searched everywhere and then i find out that the version i was currently using had some serious problems with the file upload (iOS 8.0).
So I updated and now I have the 8.1.2 version. File upload its just working fine but now I can't see the pictures that I upload. The app returns me this:
Open file;
Open file with...;
I click in the options but nothing happens...
Could you please help me?
In advance thank you!
PS: It's an app with PHP/HTML/CSS. The normal web app style with a mobile skin.
Solution
I found out the solution and I forgot to post.
The safari mobile browser and chrome mobile browser doesn't read pdf files however the desktop browser reads. So, I've made a new File Reader PHP Class and everything is now fixed. If anyone needs help please let me know, I'll have all pleasure to help.
Thanks anyway :)