0

We executed ionic resources and ionic run android. We are using the PushNotification plugin (version 2.1.1). The following code is used for handling push notifications:

pushNotification.register(
                    function(data) {}, function(error) {},
                    {
                        "senderID": "***",
                        "ecb": "window.onAndroidNotification",
                    });

Now when we send a push notification to the device, we see a white square on Android as the icon of the push notification. When using Phonegap Build instead of building the application with Android, we get the app icon. How can we set the app icon as push notification icon in Ionic (without modifying files in resources/android/drawable/...)?

Kind regards, Kevin

www.data-blogger.com
  • 4,076
  • 7
  • 43
  • 65

1 Answers1

1

I had the same issue, and I start using this plugin, you can control the size and type of the icon for the notification.

https://github.com/phonegap/phonegap-plugin-push/blob/master/docs/PAYLOAD.md