pwa-builder / ManifoldCordova

JS Plugin for Cordova
Other
94 stars 94 forks source link

missing cordova.js #109

Open smkamranqadri opened 5 years ago

smkamranqadri commented 5 years ago

I am working on an old project built with manifold for iOS, now working to build android app.

I have added the platform and also added android in manifest under mjs_api_access but still the cordova file is not injecting.

Help in this regard is much appreciated.

Lindsay-Needs-Sleep commented 4 years ago

Are you trying to inject onto a "cdvfile:///" domain for Android OS 4.4 or 5.0?

There is 2 part fix for this: 1) Do not rely on Manifold to inject the scripts. Require them manually in your html files. eg:

<script type="text/javascript" src="cordova.js"></script>

2) Follow this answer: https://stackoverflow.com/a/56811936/5820158