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:
- Microsoft pwaBuilder which doesn't seems to work (the downloaded bundle is not recognized by Google play)
- Packaging my app in Cordova (by copying files of the reactjs build in www) but I'm stuck with a white screen like some other people (publishing PWA on app stores : google play and ios itunes, Reactjs with cordova)
Is there a way today to deploy a reactjs PWA app on a store? That would realize my great dream about progressive web apps :)
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: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