Sat, 27 Feb 2021 08:34:09 GMT
Join the conversation at slack.cordova.io
Fri, 26 Feb 2021 18:55:56 GMT
@gh says
I'm having trouble with
edit-config
conflicts. I usecordova build
to install plugins, using the definitions in config.xml.cordova plugin add
has a--force
option. Is there any way to use the--force
withcordova build
?
Fri, 26 Feb 2021 10:36:54 GMT
@xavier.serra says
Hi,
Fri, 26 Feb 2021 10:37:03 GMT
@xavier.serra says
After upgrading my cordova project to:
Fri, 26 Feb 2021 10:37:12 GMT
@xavier.serra says
Npm 6.14.11 Node 10.23.3 Cordova platform android 9.0.0```
Fri, 26 Feb 2021 10:37:36 GMT
@xavier.serra says
Plugin:
Fri, 26 Feb 2021 10:37:38 GMT
@xavier.serra says
cordova-plugin-camera 4.1.0 "Camera"
Fri, 26 Feb 2021 10:37:54 GMT
@xavier.serra says
Randomly crashes the application after opening the camera to take a picture.
Fri, 26 Feb 2021 10:38:47 GMT
@xavier.serra says
Application is closed from time to time. Experienced on a Xiaomi Redmi Note 9S
Fri, 26 Feb 2021 10:38:51 GMT
@xavier.serra says
Any ideas?
Fri, 26 Feb 2021 10:39:23 GMT
@xavier.serra says
Newer plugin updates also give the same problem
Fri, 26 Feb 2021 11:50:20 GMT
@xavier.serra says
It also happens with the following configuration:
Fri, 26 Feb 2021 11:50:21 GMT
@xavier.serra says
Npm 5.6.0 Node v9.8.0```
Fri, 26 Feb 2021 12:32:38 GMT
@timbru says
You should avoid both Node v6 and v9, use v12 or v14
Fri, 26 Feb 2021 12:32:59 GMT
@timbru says
They are both end of life and unsupported.
Fri, 26 Feb 2021 12:35:21 GMT
@xavier.serra says
Dear @timbru
Fri, 26 Feb 2021 12:35:30 GMT
@xavier.serra says
With node 10.23.3 also happens
Fri, 26 Feb 2021 12:35:41 GMT
@xavier.serra says
also building with v14 happens too
Fri, 26 Feb 2021 12:47:37 GMT
@norman137 says
Is it an actual crash or is the webview is getting killed?
if the latter, that is normal behaviour on Android. See https://github.com/apache/cordova-plugin-camera#android-quirks
Fri, 26 Feb 2021 12:48:11 GMT
@xavier.serra says
Seems webview is getting killed
Fri, 26 Feb 2021 12:53:40 GMT
@xavier.serra says
I attach the logcat if somebody is interested:
Fri, 26 Feb 2021 12:53:54 GMT
@xavier.serra says
Fri, 26 Feb 2021 12:57:06 GMT
@norman137 says
Do you have
AndroidX
enabled?
Fri, 26 Feb 2021 12:57:54 GMT
@xavier.serra says
Yes I have
Fri, 26 Feb 2021 12:58:17 GMT
@xavier.serra says
<preference name=“AndroidXEnabled” value=“true” />
Fri, 26 Feb 2021 12:58:19 GMT
@norman137 says
Are you using the androidx adapteR?
Fri, 26 Feb 2021 12:58:39 GMT
@norman137 says
e.g: https://www.npmjs.com/package/cordova-plugin-androidx-adapter ?
Fri, 26 Feb 2021 12:59:01 GMT
@xavier.serra says
this one:
Fri, 26 Feb 2021 12:59:02 GMT
@xavier.serra says
cordova-plugin-androidx-adapter 1.1.3 “cordova-plugin-androidx-adapter”
Fri, 26 Feb 2021 12:59:03 GMT
@xavier.serra says
yes
Fri, 26 Feb 2021 13:03:45 GMT
@norman137 says
k... I would recommend creating a sample reproduction app[1].
I would try it first without AndroidX enabled, which I suspect it will work. The camera plugin does make use of the legacy support libraries still. Then add AndroidX with the adapter. If it breaks in the sample app, then I‘d recommend we move this to GitHub issues[2]. It would be good to keep track of cases where the androidx adapter seems to fail. (Maybe it’s because we are using v27 of the support libs instead of v28)
[1] https://github.com/apache/cordova-contribute/blob/master/create-reproduction.md [2] https://github.com/apache/cordova-plugin-camera/issues
Fri, 26 Feb 2021 13:05:00 GMT
@xavier.serra says
Ok, thanks for your advice. I will try and give you an answer asap.
Fri, 26 Feb 2021 12:38:19 GMT
@chadori says
Hi, is there a reference to automate this:
<resource-file src="google-services.json" target="app/google-services.json" />
Also, a way to set the target into a--variable PATH=""
? Preferably a hooks script for plugins? Do we have a documentation or sample for that? Thank you.
Fri, 26 Feb 2021 15:05:59 GMT
@chadori says
Hi, is there a plugin.xml counterpart of:
<resource-file src="google-services.json" target="app/google-services.json" />
I would like tosrc=
thewww/google-services.json
folder from the Cordova project. Then,target=
theapp/google-services.json
.I‘m not sure what’s the proper directory for this, could someone advise? Thank you.