Search code examples
cordovagoogle-playcreate-react-appprogressive-web-appspwabuilder

Is there a way to submit a reactjs PWA on Google Play?


I want to use the "Write once, run everywhere"

So I created a PWA in reactjs with create-react-app.

My app works greatly, and I can put it on the home screen of my mobile from the website. However, I want to be visible on mobile stores too (starting with Google Play).

I tried:

Is there a way today to deploy a reactjs PWA app on a store? That would realize my great dream about progressive web apps :)


Solution

  • The problem was about the create-react-app PUBLIC_URL environment variable which was unfilled.

    With a cordova run browser, all seems to be ok as browser seems to be more permissive in the path resolution. I had as example a /favicon.ico

    But when i was doing cordova run android, path were not found at runtime.

    By creating a new file .env and put in it:

    PUBLIC_URL=.
    

    resolved the path error and the application works now well!

    The advice of Sergio running on device with chrome chrome://inspect helped me a lot