I'm creating an RSS Reader Web app for iPad. In my application, there is a button that opens the URL of each article in Mobile Safari (with target="_blank" method)
But the problem is, after user goes to Mobile Safari from my web app, and then closes Mobile Safari, iPad goes to the home page. but it should come back to my web app.
I tried to implement an in-app browser in my web app with iframes, but there is too much problems with it. many sites does not allow users to open their website inside an iframe, also there are some problems with implementing back button for the iframe, you can read the problem here.
What is the best way for my purpose? Is there any way to come back to web app after closing Mobile Safari? If not, what should I do? Is it possible to solve in-app browser problems? How?
If you're using phonegap (which it sounds like you are), I would suggest the InAppBrowser or ChildBrowser plugin
Related
I'm trying to figure out a way to prevent developers from embedding my website in their Android apps. I've tried user agent sniffing, but I ran into a problem where I'd accidentally prevent Android users on their mobile browsers from viewing my sites. Any way to detect if the site has been embedded, either through JavaScript or another tool?
I am developing an app that sends a verification link via email. When the link in email is clicked, user should be prompted to open the iOS app if it is installed. Otherwise, it will direct to Safari browser for its website app counterpart. In android app, I was able to do this since there is the intent-filter feature in android development. Also, as much as possible, I am avoiding in iOS to redirect to the browser, and open the website, wait for it to load, then open the iOS app installed since it will be costly for the user to wait for the website to load. So the javascript workaround solution is my least option to do.
So I was wondering if there is an iOS counterpart of intent-filter. Or any workaround/implementation would be appreciated.
P.S. I am a newbie here in stackoverflow so go easy on me. thanks :))
I'd like to add to my website a piece of javascript code that will share the current page to the facebook's user profile.
https://www.facebook.com/sharer/sharer.php?u={URL}
It works well in the desktop version. In the mobile version it open a new Safari tab/window.
Is there a way to open the facebook native app with the share page?
If I'm reading this correctly, your question is very similar to another on the website. To quote an answer there:
The Facebook app does not officially support deep linking so what you are trying to do is not possible (right now).
I´m using jquerymobile to build a simple mobile app and would like to know, whats the best way one should use to make a index page for non-mobile browsers when visiting the mobile app adress ?
I use index.html for now, and i can access it with any desktop browser, but i would want to restrict it to mobile only, and show a different page for desktop browsers.
Which approuch would be better?
Thank you!
In your index.html page you can include some detection script that detects the type of browser (it may be easier to use a whitelist of mobile devices rather then a blacklist of desktop browsers) and then redirects desktop browsers to something like index_desktop.html.
Sorry if the answer isn't as exact as you would have liked but I generally allow desktop browsers the ability to view my mobile pages (I just make sure there is a "View Desktop Version" link somewhere on the page.
I'm developing a small site that will only be viewed in-app inside a UIWebView, and one page has several links to an external website. I'd like these to open in mobile Safari, but all links inside the app load within the webview. Modifying the source of the app isn't an option since the site needs to be live before any changes could be submitted.
Is there a way to force a link inside a UIWebView to launch mobile Safari using HTML/5 or Javascript? Mimic shouldStartLoadWithRequest? Sneaky, hacky workarounds or brilliant alternate solutions?
(And, out of sheer curiosity... why not?)
It would be bad design to let sites access the frameworks on the iPhone via simple HTML. This would open up all sorts of security holes. Its not web behavior you want to alter, so I think you may need to change the app source. I still don't understand why that isn't an option. Could you go into more depth?
One option would be to add a custom URL handler. Your website could then determine if the "broswer" is the app and serve custom URLs for those links you'd like to maintain (aka open) in your app. Then, any standard HTTP/s URLs would open in Mobile Safari.
In other words, have your web server provide urls like myappurl:// for the links you'd like your app to handle, and http:// which would open Mobile Safari.