Are there any ways of adding/setting an image/video/audio file from an iOS app into the tag of wkwebview's web page?
In android, this can be done by WebChromeClient.FileChooserParams class to save files picked from device into the mobile web page.
But how we can achieve this in iOS?
Related
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 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.
My IT dept. has a web app built with java and they want to be able to access the stored images on an iPad. Is that possible?
The iOS Safari browser does not run Java. But, as of iOS 6, it does support uploading saved images with a standard HTML file upload form.
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.
I want to build a webframe application in Java for Blackberry AppWorld. I need an app page that will show a website without leaving the application. In iOS, this would be a UIWebView or in Android, this would be a webframe.
You want to use a BrowserField.