iOS WKWebView allow to attach input-file from local storage - ios

I am developing iOS mobile app with webview which allow user to attach image or capture image from Local storage.
Is there anyways to upload/capture image from local storage instead of App Gallery?
Thank you in advance for support.

Related

How much data can I store in IndexDB from a mobile phone using a PWA

I have a PWA designed in Ionic and we are using it to take pictures. However the requirements is that it needs to work offline so we are storing these pictures in IndexDB.
However I have been unable to track down how much storage we will have access to in IndexDB and am concerned it will only be around 50MB or so. The the customer potentially wants to store 100 images or more offline and when it gets back to wifi it will start sending up to a remote API.
Is there any information on storage capability for indexDB when a PWA is run on a mobile device either IOS or Android?
I have seen some posts that but mainly talk about storage of the javascript files where this is actual data captured while the app is running.
NOTE: Individual images will be no more than 2-3MB each in size.

React Native / iOS - Check if CameraRoll Storage is Full

Users who have little to no storage space in their camera roll aren't able to record a video in our app. Once they start recording a video and their storage fills up, our app crashes.
We are using react-native-camera to record video, but it looks like this might fall into the CameraRoll module in React Native itself.
Is there a way to detect how much storage a user has available on their phone? We'd like to give them a warning if they are low in storage before they record their video.
This is a duplicate but I can't flag it as such since the answer isn't accepted.
You can use react-native-fs's getFSInfo() to get the totalSpace and freeSpace.

What solution should I use for a backend of an iOS app to store and stream video (like Instagram for example)?

I'm working on an app that will record video and upload it on a server.
The app shoud also to be able to stream this video.
I don't know what backend solution I should use to do it.
I looked at Azure Media but it's to great.
Thank you for your help

How to Trigger custom Video player While playing any video in iphone?

I want to create a Custom Video Player with some more features and settings .
So My question is:
1) Can i trigger my app when user clicks any video ?
2)How can i get list of all videos saved in iPhone (not in camera roll) ?i want to play them inside the video player i created.
Please guide me, thanks.
I don't think you can capture all video. External Apps tend to use Apple's native video support.
The only exception to this is if you register your application to open certain filetypes. Then applications can allow you to open the file in an external app such as yours. But this will require the cooperation of the other apps to implement "Open In" functionality; Very few apps tend to offer this functionality due to native support of video.
See here Apple Documentation
The filesystem is locked down, if it's not in the camera roll or "Open In" you can't access it.

uploading images from iPad to a bucket in S3?

I am writing a web app in HTML5 that is supposed to run on iPads.
I would like to upload images from the iPad directly to a S3 bucket.
If that is not possible, I can settle for uploading to my server and then I'll store it on S3 myself.
I've seen on the net that the preferred tool is SWFUpload, but I fear it wont work on iPads.
Unfortunately you're out of luck. Apple block file uploads in iOS Safari. The browser doesn't have access to the iOS file system or photos.
https://apple.stackexchange.com/questions/4104/is-it-possible-to-upload-files-to-a-website-from-safari-on-iphone
You'll see if you go to Facebook's Mobile Web app http://m.facebook.com and try to post a photo, they tell users to email the photo to a custom email address.
If you want photo uploads you'll have to find another route to upload or use an iOS application.

Resources