fechanique / cordova-plugin-fcm

Google FCM Push Notifications Cordova Plugin
623 stars 997 forks source link

Setting icon for phonegap build #272

Open Almya opened 7 years ago

Almya commented 7 years ago

Hi, I'm using phonegap build to build my app so I don't know how I can add my icon (fcm_push_icon.png) to the android res folder. So I'd like to know if it was possible to have a feature that copy my icon from my cordova project root folder to the android res folder.

Thanks.

Firzenizer commented 7 years ago

I used https://github.com/stetro/cordova-plugin-fcm-config and modified it so it will also add the icon.

`

<resource-file src="fcm_push_icon.png" target="res/drawable/fcm_push_icon.png" />

`

Also committed the icon file on the root directory of the plugin.