Back to Cordova

2020 10 07

slack-digest/2020-10-07.md

latest6.5 KB
Original Source

Cordova Slack Digest

Wed, 07 Oct 2020 08:27:58 GMT

User count: 4154

Join the conversation at slack.cordova.io

Channel #general (19 messages)


Tue, 06 Oct 2020 11:18:06 GMT

@chadwick.blackford says

WTH? yesterday was all fine, today is ***** day…

cordova platform add [email protected]
Using cordova-fetch for [email protected]
(node:14070) Warning: Accessing non-existent property ‘[email protected]’ of module exports inside circular dependency

Tue, 06 Oct 2020 11:20:56 GMT

@chadwick.blackford says

ah… f***g shit… yesterday I did macOS update…

Tue, 06 Oct 2020 14:35:14 GMT

@chadwick.blackford says

I’m stucked with installing ios-deploy package…

npm ERR! [email protected] preinstall: `./src/scripts/check_reqs.js && xcodebuild` npm ERR! Exit status 132

Tue, 06 Oct 2020 14:35:34 GMT

@chadwick.blackford says

and my ios app crashed after upload in store…

Tue, 06 Oct 2020 15:18:06 GMT

@chadwick.blackford says

Prepared
doc.find is not a function
TypeError: doc.find is not a function
    at Object.resolveParent (/Users/MYUSER/.npm-global/lib/node_modules/cordova/node_modules/cordova-common/src/util/xml-helpers.js:201:26)```

Tue, 06 Oct 2020 15:19:25 GMT

@chadwick.blackford says

Tue, 06 Oct 2020 15:51:19 GMT

@chadwick.blackford says

I think outdated shelljs produced some problems

Tue, 06 Oct 2020 15:53:01 GMT

@chadwick.blackford says

and finally I’m back with original errors:

Tue, 06 Oct 2020 15:53:02 GMT

@norman137 says

Shelljs I believe as been removed in all cordova packages in their latest releases.

Tue, 06 Oct 2020 16:22:35 GMT

@mario.kurzweil says

Have someone a familiar problem on ios with mongodb support? https://cordova.slack.com/archives/C068CHRJ5/p1601307200032000

Tue, 06 Oct 2020 18:01:23 GMT

@chadwick.blackford says

cordova
Using cordova-fetch for <https://github.com/WuglyakBolgoink/cordova-android.git>
(node:51281) Warning: Accessing non-existent property '<https://github.com/WuglyakBolgoink/cordova-android.git>' of module exports inside circular dependency
(Use `node --trace-warnings ...` to show where the warning was created)```
and what I do wrong?)

Tue, 06 Oct 2020 18:05:43 GMT

@dpogue says

I think those warnings are harmless

Tue, 06 Oct 2020 18:06:27 GMT

@norman137 says

Not sure when you forked cordova-android but those warnings appear when you use Node14 (which isn't officially supported yet btw), and should be addressed in the current master.

From my experience the warnings are also harmless.

Tue, 06 Oct 2020 18:08:09 GMT

@chadwick.blackford says

yesterday was no warning and no proböem with reinstall

Tue, 06 Oct 2020 18:08:47 GMT

@chadwick.blackford says

2020-10-06
2020-10-06 20:07:33.794 8019-8062/? E/chromium: [ERROR:<http://tile_manager.cc|tile_manager.cc>(793)] WARNING: tile memory limits exceeded, some content may not draw
2020-10-06 20:07:33.808 7997-8047/? E/AndroidProtocolHandler: Unable to open asset URL: file:///android_asset/www/cordova_plugins.js
2020-10-06 20:07:33.809 8019-8062/? E/chromium: [ERROR:<http://tile_manager.cc|tile_manager.cc>(793)] WARNING: tile memory limits exceeded, some content may not draw```
new problem… 🤦‍♂️🏻

Tue, 06 Oct 2020 18:09:55 GMT

@chadwick.blackford says

what I did: early (removed node_modules, platforms, plugins) -> remove custom android platform -> add custom android platform -> build app

Tue, 06 Oct 2020 18:11:57 GMT

@chadwick.blackford says

why I reinstall android platform -> last time cordova build android doesn’t change android-versionCode in output apk file….

Tue, 06 Oct 2020 18:14:48 GMT

@chadwick.blackford says

and now build is successful but cordova_plugins.js not exists anymore =)(

Tue, 06 Oct 2020 18:58:08 GMT

@chadwick.blackford says

many many many many many many many many many many many many many many many times reinstall all stuff help me now… how it will be stable, we will see later )

Channel #cordova-ios (3 messages)


Tue, 06 Oct 2020 15:30:11 GMT

@dpogue says

So with iOS 14 enabling ITP, it looks like we might be able to avoid first-party storage clearing by adding our custom scheme to the list of AppBound Domains (https://b.webkit.org/210674) but this probably has implications for other use cases. Namely, once we've enabled AppBound Domains, it will not be possible to navigate the WKWebView to anything not on the AppBound Domain list, and it will not be possible to set cookies for non-AppBound Domains.

Overall, this still seems like a security improvement. We could permit our custom scheme and any hosts listed in &lt;allow-navigation&gt; directives in config.xml, but it's probably going to be a source of pain for people misusing the Cordova webview and trying to load things in InAppBrowser (whose WKWebView would also likely be restricted to only AppBound Domains). /cc @niklasmerz @jcesarmobile

Tue, 06 Oct 2020 15:30:37 GMT

@dpogue says

As a bonus, if we turn on AppBound Domains, we probably get ServiceWorker support on iOS 14

Wed, 07 Oct 2020 05:58:04 GMT

@pratiksha.bhavsar0895 says

Hi team , has anyone faced wkwebview issue on ios 12 ? Cordova-ios:6.1.1 with default scheme & hostname(app://localhost) . On 14 & 13 its is working perfectly fine but on ios 12.3 there is a white screen & on safari debugger when checked I can see all scripts are loading again & again as in a loop. Also consoles that are added keeps on logging in loop. Please let me know if anybody has gone through such scenario. Thanks & Kind Regards,Pratiksha

Channel #plugins (1 messages)


Tue, 06 Oct 2020 14:30:23 GMT

@norman137 says

on iOS all javascript execution is forcefully paused in the webview. On android, webview behaviour when in background I believe is device-dependent.

I think the way to do this is to setup a background service via a plugin, that could be managed/configured by a javascript API, but the executing code for the background would have to be native.