How I shipped my PWA to Google Play as a TWA (and what actually went wrong)
Mark Barnett shares his experience of shipping a Progressive Web App (PWA) to Google Play as a Trusted Web Activity (TWA). He encountered several challenges, particularly with domain verification and signing keys. The article emphasizes the importance of understanding the Android project structure and the correct use of signing keys to avoid common pitfalls.
- ▪A Trusted Web Activity (TWA) allows a PWA to run in fullscreen mode without browser UI elements.
- ▪Barnett faced issues with a blue navigation bar indicating domain verification failure due to incorrect signing key fingerprints.
- ▪He advises developers to familiarize themselves with Android project structures and to use Google's verification tool for troubleshooting.
Opening excerpt (first ~120 words) tap to expand
try { if(localStorage) { let currentUser = localStorage.getItem('current_user'); if (currentUser) { currentUser = JSON.parse(currentUser); if (currentUser.id === 560157) { document.getElementById('article-show-container').classList.add('current-user-is-article-author'); } } } } catch (e) { console.error(e); } Mark Barnett Posted on May 21 How I shipped my PWA to Google Play as a TWA (and what actually went wrong) #pwa #android #webdev #showdev I built Money Me as a PWA. It works offline, it's installable, it feels like a native app. At some point I decided to put it on Google Play because people kept asking "is it in the store?" The TWA route seemed obvious. Wrap the existing PWA in an Android shell, ship it. I figured a day of work, maybe two. It took me a lot longer than that.
…
Excerpt limited to ~120 words for fair-use compliance. The full article is at DEV.to (Top).