I would like to to know how a link on our webpage could open 'safari' (complete new window). What command do we have to implement in our Html5 jquery mobile page, that an iOS user clicks on this link and than the Safari browset will open en rdirect.ro a webpage?
The iOS hotspot log in window opens our guest log in page, from here we would like to open safari browser en redirect to a webpage.
Thanks in advance.
Take a look at JSBridgeWebView Library
http://code.google.com/p/jsbridge-to-cocoa/
Through this lib you can send message to an iOS app and then based on this message app will open Safari.
Related
can I open(or select) another browser in my hybrid app(using webview)
without native android code(ex. intent)?
My web page have code like this
click
when click that link, i wanna browser select menu like chrome , internet, etc...
but when i click that link, it only open in my browser.
and i tried with javascript
window.open("something.com", "_blank");
but it dosen't work too
how can i solve this problem?
I have an MP3 in Dropbox that I am able to force browsers to download rather than handle natively, with the exception of Safari on iOS. In this case, a straight link on my website to the file opens the Dropbox mobile site with the file showing this:
http://imgur.com/mePjw0m
The Download button in the center just opens the MP3 via QuickTime within Safari, while the button on the top right of the page opens another screen that offers "Direct Download" and "Add to my Dropbox". "Direct Download" plays the MP3 within Safari, while "Add to my Dropbox" opens a sign-in page. This is not only inconvenient (why bother havign native apps if Safari won't offer links to them?) but also frustrating for the end user. Not everyone uses Dropbox, and of those who do, most probably aren't inclined to log in via Safari when they already have the app.
What I'm looking for is some way to force mobile Safari to show the "Open In..." menu (best solution) or at the very least, for Dropbox users, to show the "Open in Dropbox" button that appears when Safari can't handle the file natively. The Dropbox app as well as other cloud storage apps are registered in iOS to handle MP3s. When users open PDFs in Safari they are given the choice to open in other apps as well, so there should be no reason that Safari can't do the same with MP3s.
Safari on iOS will not show an "Open in" option for mp3 files, so what you are asking may not be possible.
If you want to load the file directly (bypassing the Dropbox webpage), in the Dropbox link change www to dl. On top of that, normally if you add ?dl=1 to the end of the url it will force it to download. However, you will see that in iOS Safari it behaves the same way as if you just changed the "www" and does not allow you to send it to another app.
The situation is like this:
User opens app from a website using a custom urlscheme
User does stuff in the app
User clicks button in the app to return to the website in Safari.
I have tried opening a new tab containing a javascript:window.close() but this does not work on iOS 6.1.
So my question is: Is there a way to open Safari to view the website the user left from? Either with a working new tab that closes itself or a different route?
When you open the app with your custom url scheme, pass the actual page url as an argument.
mycustomUrlScheme://mydomain.com?objectid=1234&callback_url=encoded_url
In your app, handle the url for the content info and keep the page url to open it afterwards. It will make safari open a new tab. But that should be a good start.
As far as i understand you can do it.
user opens mobile safari for example http://www.example.com
user clicks a link that is appscheme://open and the application become active
user taps a button to open safari for example http://www.example.com?q=test
for the third step you can use [[UIApplication sharedApplication]openURL:url]
I'm not a heavy coder here, so i'll ask my best.
We made a brochure about our home town. However users spreading it trough facebook cant open the links when in their facebook app. The app does not send it to safari either. If opened directly from safari it is no problem.
The link is http://visit.lodingen360.com
Is there anything i can do to the site/index.html/whatever that will make it open in safari when the link is clicked in the facebook app for ios? (that won't affect visiting the site from pc's and so on)
Is there anything uiwebview won't read that can force it to safari, so that we can redirect from the thing opened in safari to the site?
Your page will load and display in Mobile Safari, I tried with UIWebView and it will load without displaying an error, but the brouchure page content won't display.
Safari and UIWebView have different user agent's - therefore my guess is that because your site uses flash but it checking for the type of browser you are not performing the check correctly for UIWebView and the page is attempting to use flash which isn't supported.
I'm building a phonegap app with facebook authentication (https://github.com/davejohnson/phonegap-plugin-facebook-connect). I already have it working on android, but on iOS, I'm having this issue:
When I click 'login' (on the example index.html provided by the plugin), it opens a browser window and goes to facebook's mobile login page, instead of opening the facebook login dialog in a popup.
However, when I click 'wall post', it does open the expected popup (although it also seems buggy, login does not seem to work).
What can I do to make sure the popup opens for the login dialog, and not the browser?
Cheers,
Hoff
This is now the default behaviour for FBConnect when the device supports multi-tasking but does not have the FB app installed. The popup is only used on devices that do not support multi-tasking.
If you really want the popup you will have to go in to the FBConnect code and change it so that it always uses FBDialog.
The behaviour is documented here https://developers.facebook.com/docs/mobile/ios/build/#implementsso