-
Notifications
You must be signed in to change notification settings - Fork 142
missing cordova.js #326
Comments
I'n having the same problem. The _cordovaNative is present but not cordova. How can it be injected? |
my mjs_api_access:
|
Don't know, my problem still exist, maintainer please help us. |
hi folks, this is for android correct? have you reviewed the old docs: https://github.com/pwa-builder/PWABuilder-CLI/wiki/Using-Cordova-Plugins-in-Hosted-Web-Apps |
Yes, Android. Aren't the mjs_api_access and mjs_cordova directives enough to get cordova.js automatically injected at page load? |
so make sure you are have clien mode set: https://github.com/pwa-builder/PWABuilder-CLI/wiki/Using-Cordova-Plugins-in-Hosted-Web-Apps |
Yes, it is set. using plugin_mode. |
Have you tried with a different value for the |
Yes, first I've tried the URL like https://github.com/* . I've changed to * after that. |
Did you update cordova ios? It seems like newer version don't work. |
we did update but I don't think it has made it to public builds yet. @nbellocam right? Our update should get iOS working again. We are pushing it through the system this week |
@boyofgreen are you still planning on doing the update this week? |
I just realized that you updated the IOS version in the meantime. "mjs_extended_scope": [
"*"
],
"mjs_api_access": [
{
"match": "https://domain.com/*",
"platform": "android,ios",
"access": "cordova"
}
] Then, I ran it on an Iphone using Xcode and couldn't find the cordova.js. Is still supposed to work? Those settings worked before, as long as I didn't update the cordova-ios-version that came with it. |
I have been struggling with the same issue. After playing with various combinations and following the various Wikis, the only time i've seen cordova.js served from the App's local files itself when the default index.html file is used instead of my webapp's index.html. To load the default Cordova screen I removed the reference in config.xml which was pointing to my site: The default index.html file references the cordova.js file, which is resolved to file:///android_assets/www/cordova.js If I add Is it possible that the "client" plugin_mode in the manifest is being ignored, or perhaps not correctly passed down to the generated android app? I have this in my manifest.json.
Alternatively, could it be the scope is now wrong when running against a remote website? So android_assets/www is not the default location, it will now be https://mywebsite.com As an experiment I tried setting my website to reference cordova.js as Serving cordova.js and cordova_plugins.js as recommended here works. Although that is without the I would much rather use the Thanks |
Would love to see some progress here, I have followed the above information (updated my manifest etc) and simply do not get a cordova.js asset within my web app. Seems a bit odd to me that an app generated with PWABuilder doesn't have access to cordova.js by default. @SamLoy did you ever make any progress? |
Any news here? |
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.
The text was updated successfully, but these errors were encountered: