How to set app icon / custom icon to plot notifications on Android

28 views
Skip to first unread message

r...@reclamefolder.nl

unread,
Jan 29, 2016, 8:48:26 AM1/29/16
to plot-users
Hi,

Currently plot notifications place a square with rounded edges as the default icon on notifications.
I'd like to know how to use both my default app icon or a custom icon as the icon for these notifications.
(we also push our own gcm messages and they use our icon in messages by default)

I saw this post, but the answer just isn't sufficient:
https://groups.google.com/forum/#!topic/plot-users/nSKhpH40D6Y

So question:
If i want custom icon.
1. where do i place it within my project?
2. could you describe the exact syntax i need to use in my plotconfig file to point to this icon?
So something like this?

{
"publicToken": "xxxxx",
"enableOnFirstRun": true,
"notificationSmallIcon": "R.drawable.my_icon_name??"

}


Message has been deleted

r...@reclamefolder.nl

unread,
Jan 29, 2016, 9:00:38 AM1/29/16
to plot-users
Nevermind,  
I found it already:
This is what your plotconfig could look like:
{
"publicToken": "xxxx",
"enableOnFirstRun": true,
"notificationSmallIcon": "ic_notification",
"notificationAccentColor": "#895083"
}

my icon is ic_notification.png and located in res/drawable in my android project

Jan-Pieter van den Heuvel

unread,
Feb 1, 2016, 9:49:19 AM2/1/16
to plot-...@googlegroups.com
Hi Rik,

Good to see that you were able to solve the issue. And thanks for sharing the solution.

Kind regards,
Jan-Pieter

--
You received this message because you are subscribed to the Google Groups "plot-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to plot-users+...@googlegroups.com.
Visit this group at https://groups.google.com/group/plot-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/plot-users/61861066-f081-4e3c-8e27-2332e8ec948e%40googlegroups.com.

For more options, visit https://groups.google.com/d/optout.



--
Jan-Pieter van den Heuvel
Plot Projects I Development



Follow us on Twitter
Find and connect with us on Facebook
Keep up with us on our blog

Reply all
Reply to author
Forward
0 new messages