How to apply unlimitedStorage permission to a <webview> component inside a Chrome app? - google-chrome-app

We are building a Chrome app that is basically a webview displaying one of our website. We've set the "unlimitedStorage" permission as described here : https://developer.chrome.com/apps/offline_storage#unlimited
When we log the available size inside the Chrome app, it displays the whole disk size, but inside the webview no matter what we do we are stuck with the default 600MB.
This web app stores a lot of video in indexedDB so we need to be able to use as much disk size as possible: how can we allow unlimitedStorage for the website inside the webview ?

Related

Downloading images in the background in flutter

Hi everyone I need help with downloading images in background in our flutter app
We are showing users list of images in our app we need to allow users to select these images and save them to thier phone but the download has to happen in the background so that the user can continue using rest of the features of the app
Our app is developed in flutter
Our backend is written in laravel 8
And database is SQL
I am a newbie and so I don't have much clarity regarding what more information shud I put in to help you all understand the code so I am adding a screenshot of the UI of our app search page
where we need to allow users to select multiple images and save them to their phone local storage but the download has to happen in background as the image size is big
You can use a async function where you call it and the app goes on. In the background all images are going to be saved on the phone while you still can use the app

Progressive Web App, I am trying to maintain same screen when minimize or maximize in iphone

In Android, When I minimize and maximize, the app maintain the same screen what I saw previously.
In iPhone, When I minimize and maximize, The app not maintaining the same screen. reload from home screen.
Full screen implementation web app for IOS is quite different when compared to that of android. If you are running your web app in full screen mode in IOS, minimize the app and maximize again, IOS considers it as fresh start so all the session cookies(cookies having session as timeout) will be cleared on minimize. so if you have cookies related to session, they all will be cleared. However you can try implementing html caching(using cache.manifest) to cache the pages. I've not personally implemented this but it might help. All the best

How to upload photos to my server with an iOS hybrid web/binary Application?

I'm working on a hybrid app for iOS,
This application is a binary which basically contains a UIWebView to use my client's web service. The binary does also provide feedback to the user about the connectivity status of the device (using reachability).
There's a feature that I'm working on now, which basically requires a user to fill a small web form in the UIWebView, and that should allow the user to "attach" a picture (e.g avatar).
I was wondering if I could exploit the fact that I'm wrapping the UIWebView (to interact with the web service) in a binary to handle the image upload for the user without having to leave my Application?
I'm open to possible solutions.
Cheers.
Have a look at UIImagePickerController. It allows the user to pick images from the Photos app or the Camera within your application. Then you can upload the selected image to your server using NSURLConnection. The presence of UIWebView is irrelevant.

A caching solution for iPhone application

What I'm building is simply an application that fetches data over the web and displays them on the iOS views. Data are text and, sometimes, images / music files / movies.
I'd like to use some caching solution for the media. What it needs to do is:
get an url of the file
check if it's alredy downloaded in the cache storage, if it is, serve it
if not, download it
while also checking how much of the storage the current cache uses, and, if it's over the quota, delete oldest files
Best would be to have a simple interface for this - so I can just give an url and get the file of it (while files can change over time and reside on the same URL, so this should be handled too, in a perfect case).
Anyone knows a library to do it, on iPhone/iPad application?
ASIHttpRequest has a DownloadCache option that may work for you. From their documentation:
* You want to have access to the data when there is no internet connection and you can't download it again
* You want to download something only if it has changed since you last downloaded it
* The content you are working with will never change, so you only want to download it once
This is what I used in my iPad app and it works pretty well.
You could try looking at using a UIWebview for the view. If I am understanding this correctly, you will be hosting your content on a web server and would simply like the iOS device to pull the content from the URL. This is what UIWebview is. It is essentially programmable access to Safari.

How can I store more than 5 MB on an iPhone web app?

I am working on a magazine/portfolio application that is intended to be readable offline, saved as an icon on the home page.
This is using a lot of images, but while I can keep the images down to a respectable size (200 KB or less, with alterations for iPhone vs iPad) the amount for the page surpasses the 5 MB limit for a web app cache.
I have tried the cache manifest, but if the device is turned off or I clear the cache (which I do a lot while developing) the information is gone forever (and does not get resaved if I visit the bookmarked site while online again).
I am exploring the use of base64 to store the smaller icons in a CSS file, but am not sure about how to build a local storage database for the other information (backgrounds, images, text, etc) that will be persistent without being tied to the Safari cache.
Is this even possible?
(The project is intended to be an open source publishing engine, so more people can create digital 'zines for the iPad.)
you can't...
if you are limiting your application to a web application on the iphone, then your options are limited to what is provided on the device. I believe sqlitedb with mobile safari is limited to 5MB.
You can look into technology like PhoneGap which provides a wrapper around HTML5 web based applications on multiple platforms. This wrapper will give you access to the native device and then you could store additional data on the device in flat files on the native database without the 5MB limit