0

I know these type of question has been asked before but none of them works for me.

My objective: To build a cordova/phonegap app using react.

What I did: I created a basic cordova app. Deleted the contents of /www folder. Created a react app using create-react-app. Then built it using npm run build and copied the build folder content to /www of cordova. I'm following this SO post. After building the cordova app, the app successfully runs on browser but it gives net::ERR_FILE_NOT_FOUND(file:///android_assets/www/) error when I try to run it on android.
To solve the issue, I even tried to add timeout and checked for spellings of files. But the issue still persists.

Please help me to find the solution for this issue.

noobie
  • 751
  • 4
  • 13
  • 33

1 Answers1

1

You Should Add <allow-intent href="*" /> to your config.xml

Mtzare
  • 206
  • 3
  • 6