bubblewrap icon indicating copy to clipboard operation
bubblewrap copied to clipboard

Pack Web Bundle into Trusted Web Activity

Open FluorescentHallucinogen opened this issue 6 years ago • 4 comments

TWA has a problem that if the device is offline in the first run, TWA can't show any content. Also, it takes time to load the page in the first run on flaky network.

Looks like Web Bundles can fix this: TWA can open the web bundle file from the APK in the first run (the page in the bundle file installs a service worker).

Web Bundles can be created using wbn npm package.

FluorescentHallucinogen avatar Dec 13 '19 12:12 FluorescentHallucinogen

We're definitely looking at this (there's a proof of concept CL and we're now onto the design stage).

Unfortunately it's a bit more complex because signed bundles expire pretty quickly (I can't remember off the top of my head, but it would definitely be onerous to require the TWA developer to reupload their app to the Play Store with a refreshed bundle periodically).

PEConn avatar Dec 13 '19 14:12 PEConn