dpa99c / cordova-custom-config

Cordova/Phonegap plugin to update platform configuration files based on preferences and config-file data defined in config.xml
318 stars 84 forks source link

The prefix "ns1" for attribute "ns1:name" associated with an element type "meta-data" is not bound #153

Closed rhanesoghlyan closed 5 years ago

rhanesoghlyan commented 5 years ago

For configuring push notification icon in my Ionic project I did some changes in config.xml file. But I've got a error.

The prefix "ns1" for attribute "ns1:name" associated with an element type "meta-data" is not bound.

This is my widget <widget id="test" version="0.0.3" xmlns="http://www.w3.org/ns/widgets" xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools">

And my config file tags: `

<config-file parent="./application" target="AndroidManifest.xml">
  <meta-data android:name="com.google.firebase.messaging.default_notification_icon" android:resource="@drawable/notification_icon" />
  <meta-data android:name="com.google.firebase.messaging.default_notification_color" android:resource="@color/red" />
</config-file>`
dpa99c commented 5 years ago

You are using the <config-file> element which will be parsed by Cordova. If you wish to make use of this plugin, you need to use <custom-config-file>.

Please see the example project as reference for a working example.

dpa99c commented 5 years ago

Closed due to no response

rhanesoghlyan commented 5 years ago

Sorry for the late response. But I've tried with <custom-config-file> as well. The same result

dpa99c commented 5 years ago

Have you tried the example project? It's a known working environment you can use for comparison with your own project. Try it as is, then try adding your own config blocks to it and see what happens.

rhanesoghlyan commented 5 years ago

@dpa99c thanks a lot. Will try. I'll come back with updates