Fri, 18 Dec 2020 08:39:41 GMT
Join the conversation at slack.cordova.io
Thu, 17 Dec 2020 14:21:38 GMT
@norman137 says
Generally speaking you should use the read apis to read local files, but if you must, if you're using schemes I think you need to use
WKWebView.convertFilePath
Thu, 17 Dec 2020 19:41:24 GMT
@lonestarx91 says
@norman137 i have a feeling we're not on the same page about my issue
Thu, 17 Dec 2020 19:43:32 GMT
@lonestarx91 says
i have a script on the server which tries to load https://cdvfile/localhost/bundle/www/cordova.js
Thu, 17 Dec 2020 19:44:06 GMT
@lonestarx91 says
so when trying to access said web page in my cordova app, it should go to the local cordova.js file
Thu, 17 Dec 2020 19:44:15 GMT
@lonestarx91 says
which used to work with webview but doesn't with webkit anymore
Thu, 17 Dec 2020 19:48:23 GMT
@lonestarx91 says
and now i get “[Error] Failed to load resource: A server with the specified hostname could not be found. (cordova.js, line 0)”
Thu, 17 Dec 2020 19:48:48 GMT
@lonestarx91 says
Thu, 17 Dec 2020 19:50:06 GMT
@norman137 says
> i have a script on the server which tries to load https://cdvfile/localhost/bundle/www/cordova.js This doesn‘t make any sense to me. What server?
cordova.js
is a file that is local to the device, it’s bundled with the app.
Thu, 17 Dec 2020 19:55:36 GMT
@jrondon says
Help
Not allowed to load local resource: file:///var/mobile/Containers/Data/Application/D7C4DD6B-FC8C-4D0E-A333-4B77BAB5248A/tmp/cdv_photo_1608233638.jpg
Thu, 17 Dec 2020 19:59:03 GMT
@lonestarx91 says
@norman137 by server i meant the web app. it's trying to load the local cordova.js in the iOS app
Thu, 17 Dec 2020 20:16:37 GMT
@lonestarx91 says
your tag would point to a server side stored cordova.js whereas i'm trying to load it in the remote web page FROM my local folder
Thu, 17 Dec 2020 15:32:17 GMT
@kkubicki2 says
Is this a common issues with common solution ? Android stuck on “connecting to device”
Thu, 17 Dec 2020 15:33:16 GMT
@kkubicki2 says
It goes in parallel with this:
12-17 16:31:11.991 7044 7143 D eglCodecCommon: setVertexArrayObject: set vao to 1 (1) 7 4
Thu, 17 Dec 2020 15:33:39 GMT
@norman137 says
I believe that changes when the
deviceready
event fires if I recall.
Thu, 17 Dec 2020 15:33:52 GMT
@norman137 says
Are you loading in the
cordova.js
file?
Thu, 17 Dec 2020 15:34:17 GMT
@kkubicki2 says
This is after I add another of my famous home made plugins
Thu, 17 Dec 2020 15:34:24 GMT
@kkubicki2 says
the two other plugins I created work fine
Thu, 17 Dec 2020 15:35:25 GMT
@kkubicki2 says
The entinre
index.js
is as follos:
Thu, 17 Dec 2020 15:35:27 GMT
@kkubicki2 says
function onDeviceReady() { // Cordova is now initialized. Have fun! console.log('Running cordova-' + cordova.platformId + '@' + cordova.version); document.getElementById('deviceready').classList.add('ready'); }```
Thu, 17 Dec 2020 15:39:53 GMT
@norman137 says
the html file should have a
<script src="cordova.js"></script>
Thu, 17 Dec 2020 15:41:51 GMT
@ucheozoemena says
Hi folks, what's a good place to check if I get a build error like > error: package com.mapon.mapongo does not exist Is there a public database/repository of the packages that I can check? Thanks!
Thu, 17 Dec 2020 15:44:28 GMT
@norman137 says
that appears to be an app id.. https://play.google.com/store/apps/details?id=com.mapon.mapongo&hl=en&gl=US