Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to change Parse push notification icon in android?

In my application i have used parse cloud code for sending push notifications to user.By default notification icon used app icon.but I want to change notification icon . I used this below code in manifest xml

<meta-data android:name="com.parse.push.notification_icon" android:resource="@drawable/noti_icon"/>

But the icon will not change. Any way to achieve this??

like image 991
Surya Avatar asked Jan 08 '23 21:01

Surya


1 Answers

The official way to change the Android push notification icon when receiving push notifications using Parse, as stated in the Parse Android docs for push notifications is as follows:

enter image description here

IMPORTANT
Make sure the image that you want to use follows the Icon Reference Chart section for Notification icons - specifically:

They should be flat (no gradients), white and face-on perspective

If your icon violates one of these requirements, your icon will show as a white box.

like image 121
DiscDev Avatar answered Jan 19 '23 09:01

DiscDev