After publishing your native app, say Android, the next thing that rings in your mind as a dev is how to get it out there to people for them to install. That matters.


Progressive Web App

The most ideal place to fall for is the Web. The question is, why the Web? It's the incredible reach that the Web has on all devices that your target users are using. So, most of you would build a single page site to get your native app out there with some fancy install button.


With the reach and capabilities that progressive web apps have, you could rather build a progressive web app that automatically in a more engaging way prompts the user to install your native app


Native app install banners give you the ability to let users quickly and seamlessly install your native app on their device from the app store, without leaving the browser, and without showing an annoying interstitial.



How do you get that done?

Well, with PWA Fire App you will start your Progressive Web App Project and add a few lines of code to the manifest.json to add that Native App Install Banner on the web.



"prefer_related_applications": true,
"related_applications": [
  {
    "platform": "play",
    "id": "your_native_app_id"
  }
]


prefer_related_applications - Tells the browser to prompt the user with your native app instead of the web app. Leaving this value unset, or false, the browser will prompt the user to install the web app instead.


related_applications - Is an array with a list of objects that tell the browser about your preferred native application. Each object must include a platform property and an id property. Where the platform is play and the id is your Play Store app ID.


Have happy code dance 💃


You want to join our developer program?