How can I turn my web application into an APK without rewriting it?
Asked by
Madrigal
I have a fully functional web application and I'm interested in creating an APK file to publish it on the Play Store. Given the size of the application, rewriting the entire codebase in technologies like React Native, Flutter, or Java isn't a feasible option for me. Is there a way to package my existing web app into an APK without a complete rewrite?
Answers
You might want to check out Trusted Web Activities (TWA). It's Google's recommended method for wrapping a web app into an Android package, and it performs better than a typical WebViewโmaking it feel more like a native app.
Reply to this answer
Just a thoughtโwhy go through all the trouble of creating an app that may limit your audience? The cheapest way might be to add PWA configuration to your site, so it prompts users to add it as a shortcut instead.
Reply to this answer
Take a look at pwabuilder.com. It does most of the work for you and helps you publish your app on the app stores easily.
Reply to this answer
If you're keen on a less restrictive approach, you could consider turning your web app into a Progressive Web App (PWA). This way, users can add it to their home screen without making a full app.
Reply to this answer
Looking into Capacitor is another option, although Iโve heard it doesnโt support all native web APIs like the web share feature.
Reply to this answer
Add your answer
Answers are reviewed before publication.
Related Discussions