Closed b1zzu closed 4 years ago
Thank you for your well written issue report. Confirmed this is an issue. My command line output states:
Conflict found, edit-config changes from config.xml will overwrite plugin.xml changes
But comparing config.xml
to phonegap-push-plugin plugin.xml
what is conflicting isn't very obvious. Perhaps it is one of phonegap-push-plugin's dependencies?
Hi @breautek I don't think something is conflicting, and I found out that changing edit-config
in this way
[...]
<edit-config file="app/src/main/AndroidManifest.xml" mode="merge" target="/manifest/application">
[...]
will make the conflict disappear
@b1zzu You should use the full path for AndroidManifest.xml
in edit-config
<edit-config file="app/src/main/AndroidManifest.xml" mode="merge" target="/manifest/application">
<application android:usesCleartextTraffic="true"/>
</edit-config>
@danielpassos cordova official documentation suggests using only the file name: https://cordova.apache.org/docs/en/latest/plugin_ref/spec.html#edit-config
and in cordova 8 it works using only the name.
Do you have an idea, what am I doing wrong:
Same issue, not working
Bug Report
Problem
What is expected to happen?
I expect to have bot the configurations applied from the plugin and the one specified inside the config.xml, which means having
<application [...] android:usesCleartextTraffic="true">
and<service android:name="com.adobe.phonegap.push.FCMService">[...]</service>
in the final AndroidManifest.xmlWhat does actually happen?
In the final AndroidManifest.xml is only present the configuration from the config.xml
<application [...] android:usesCleartextTraffic="true">
Information
Command or Code
create a new cordova app:
overwrite the
config.xml
with this one:create a fake
google-services.json
add the
phonegap-plugin-push
add android
build the android app
verify the
AndroidManifest.xml
<service android:name="com.adobe.phonegap.push.FCMService">[...]</service>
should be present inside theAndroidManinfest.xml
but it isn't.Environment, Platform, Device
Version information
Checklist