Where are PWA files stored when cached for offline use? - progressive-web-apps

I have a PWA that caches the app for offline use. Where are the files stored when you install the PWA and how do I locate them?

The browser stores these files for you. You can browse them via DevTools.
In Chrome you find them under DevTools => Application Tab => Cache
But I don't think you can locate them via file browser.

Related

I want to update the existing logo for my PWA app

When I am updating the logo of the PWA app the icon is not getting updated for the previously installed applications. However for newly installed apps I am getting the correct logo.
Did you try updating the new image icon in manifest.json & then showing a prompt to users to refresh the PWA?
You can try to have a look at the documentation for Android APK (from the question is not clear your target device: web or mobile).
Chrome will periodically compare the locally installed manifest against a copy of the manifest fetched from the network. If any of the properties in the manifest required to add the PWA to the home screen have changed in the network copy, Chrome will request an updated WebAPK, reflecting those new values.
This feature is not yet available for desktop, but planned in a future release.
Do you use any framework (Angular, React) to build your PWA? If you want to read more details about how to install an app on the homescreen or the web manifest properties, you can have a look here.

How do I uninstall a PWA with related files in Android Chrome browser

When we install pwa then it will create some cookies as per our requirement and we can use that cookies for some references. After some time when user unintsall the pwa then its necessary that there will be delete the pwa files of cookies and also some local storage data from index db
in android long press icon of app then drag up to the "Remove" on the top center of the screen
How do I uninstall a PWA in Android Chrome browser

How to copy a file from USB drive to my local chrome web app folder in chrome device using api

I want to copy a file from usb device, in my local installed chrome web application.
1. I tried using api under chrome.usb.
2. i am able to list, connect and open the device.
but how to transfer a file?
Thanks in advance!

get the manifest.json file of a chrome web app

I made a chrome web store application and i lost the manifest.json file of the last version. Is there any way to get this file from the Developer Dashboard?
From the Developer Dashboard, click More Info for the app.
In the popup there is a link labeled Download: main.crx
Click the link to download your app's crx file.
Open the crx file in any zip file manager. It will include the manifest.json for the app.

OTA midlet issue

After installing my midlet to a phone over the air, I'm getting a blank page from browser which need to be closed manually.
Any idea how to prevent it?
I read that JAD files are no longer required, as the all info located in JAR. I tried to use the JAR files instead of JAD's, but with them the browser first downloads and only then offers to install the middlet. With JAD it offers to install first, which IMHO more user friendly. Is this the expected behavior, or it can be improved and remove the need in JAD's?
I'm using Eclipse MJT (Previously called EclipseME).
A JAD file makes it easier to sign and deploy your application.
I would definitely not expect all phones to be able to install an applicaiton from the JAR alone.
Without more information, I can see 2 reasons why a blank web browser page would be left on the screen after a jad install:
bug in handset firmware. Not only can the phone not download the jar without launching a full web browser but it also forgets to close the browser window. It happens.
your application asks the phone to notify a remote computer after installation. There is a standard application property for this in the MIDP specifications. it could be in the jad or in the manifest.