I have a website that is using ink's filepicker javascript lib to upload photos. It works in browsers on both desktop and mobile, the difference is on iOS it will open up a separate tab and upload from there and return to parent tab once upload is done, but on desktop it just opens in a modal view.
Now I am embedding a UIWebView in an app so there is no tabs. The page where upload button is will be replaced by the filepicker uploader, and I was expecting it to preserve the state of it's parent page, but somehow it won't. I am unable to upload even though the same upload button works in the same simulator in browser. Do I have to use the filepicker iOS library for this kind of in-app upload? Are there any work-arounds? Thanks.
I have the same issue with embedding my JavaScript/Filepicker based site within my native iOS app in UIWebView.
I contacted Filepicker.io dev support and here is their statement:
"unfortunately the way it looks currently is that the limitations of UIWebView prohibits cross-window communication, because as you're seeing the state of the parent window is not saved."
So, I am going to have to use native Filepicker library as well on iOS.
Related
From Apple's guide in Support Universal Links:
When you support universal links, iOS 9 users can tap a link to your website and get seamlessly redirected to your installed app without going through Safari. If your app isn’t installed, tapping a link to your website opens your website in Safari.
But i'm confused that if my app is not installed,and I tap a universal link of my app in another app's UIWebView,will the system launch Safari app to load my website,or still load it in the UIWebView?
I test some app's universal links when the app is not installed,and they never launch Safari to load the next page ,they still load it in the UIWebView.
I want to konw if it's possible to launch Safari,but not stay in UIWebView.Do I need any configuration in apple-app-site-association file?
Actually I want to trace where my app was installed from by using cookie.I can store a cookie in Safari with informations of the download page,and get the cookie with SFSafariViewController when my app is installed and opened,and present different views according to the cookie.
What you are trying to build is called 'deferred deep linking'. This (plus a lot more) is exactly what we provide at Branch.io. If you want to avoid the headache of configuring it all yourself, give this a look. Apps like Pinterest, Airbnb, and Tinder all use us for this reason.
Apple's documentation is referring to the default behavior with the standalone Safari browser. Handling links inside an app with UIWebView supersedes this, and there is no way to automatically bounce out of the origin app into the main Safari app.
The workaround is to store data on your own backend. As you've discovered, relying on a cookie pass-through on the device itself won't work in many cases.
I am in the mist of creating a mobile web app and have both meta tags
I have an iphone 5 on 7.0.4
When I click on a regular link like the one below it, opens up a mobile safari window and leaves the webapp. I also tried setting the target to _self and same behavior.
Sign in
I then used my ipad which was on 7.0.3 and it worked as should, not opening mobile safari on links. I think proceeded to update my ipad to 7.0.4 and the same issue as I had on my ipad.
Anyone ran into this issue and or knows a fix ?
Thanks
Since iOS 7.0.4 all links in WebApps open in Safari. As a workaround you can use Javascript:
window.location.href='text.html'
But remember that these steps will not be captured in history (so there is no ability to use Javascript like history.back() ..).
Alternatively, if you are using a menu in your web app, try to combine iframe and Javascript, you can change the content of your iframe with this Javascipt:
document.getElementById("frame").src = new_content.html
This will prevent your WebApp to open up links in Safari and stay in WebApp view.
I've setup a Captive Portal with dd-wrt, wifidog, authpuppy and some plugins from authpuppy as well as my own web app.
I've found that video tag from html 5 could not be played on ios popup broswer(I think it's a UIWebView), while android works fine.
Is it possible to make video play-able on this reduced version browser from ios?
It works in ios 7.
It seems that ios 6 (or below) cannot load some resource types (such as mp4 or zip and so on) in the popup web browser.
Here mention a method to how to solve these kind of problems.(it skips the popup browser)
But if you really want to play videos in the popup browser, I'm also researching it...:P
I'm trying to use Phonegap to build an iOS application through github. All I have in my directory is one html file and an image. The html basically redirects them to my website, which is optimized for mobile devices. However, instead of redirecting them in-app, it opens a safari window and tries to load my website in there. How do I get it to load the website in-app?
I think it would be useless to correct youut code, because Apple won't allow you to bring this app into the store. It is not allowed create just a browser. But this may answer your question: Stop iframe redirect/opening mobile safari in phonegap project
i am working on a web application based on media gallery.In this application i am uploading media using SWFUpload either images and videos.When i try to open my application on IOS then uploader not visible there.Where it is working fine on safari installed on windows.I want some suggestions from experts of this field.
one site who is using SWFUpload is http://www.ehproductions.com/mediaimage.htm.
Here SwfUploader working nice on windows but not on IOS machines.
Is there any javax html5 compatible uploader?
Thanks in advance.
According to the description of the SWFUpload:
SWFUpload Upload files to a server via flash and listen all the events
from JavaScript.
As all we know there is no flash on the iOS devices, and as result — uploader not visible there. But the problem is not only in the flash. iOS misses html file input, so you cannot use the same tools you use with other OS/browser. Take a look at this question - "A html5 web app for mobile safari to upload images from the Photos.app?", — for possible workarounds.