Unity3D FCM notification icon issue on Lollipop

2,864 views
Skip to first unread message

Thomas Krüger

unread,
Feb 1, 2017, 10:46:14 AM2/1/17
to Firebase Google Group
Hi there,

as you all may know, to show a notification icon on Android Lollipop, it has to be white and transparent.
However, within the Firebase-Plugin for Unity I'm not able to set an icon. That's why it's using the app icon (- at least trying).
I obviously do not want to change the app icon. 

So is there a workaround to load and show another specified icon when on Android Lollipop?
Maybe just change something within the AndroidManifest? Since I cannot access/change the provided classes.

Best wishes,
Thomas

Stewart Miles

unread,
Feb 10, 2017, 11:59:01 AM2/10/17
to fireba...@googlegroups.com
You can customize the icon by using meta-data fields in the manifest see https://firebase.google.com/docs/cloud-messaging/android/client#manifest

Cheers,
Stewart

--
You received this message because you are subscribed to the Google Groups "Firebase Google Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to firebase-talk+unsubscribe@googlegroups.com.
To post to this group, send email to fireba...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/firebase-talk/0e5cde1f-39a6-4e12-b067-79effe979a81%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Thomas Krüger

unread,
Feb 11, 2017, 11:08:39 AM2/11/17
to Firebase Google Group
Hi Stewart,

thanks for your answer. I know about this, but where, in Unity, do I have to put such icon-texture to address it?


Am Freitag, 10. Februar 2017 17:59:01 UTC+1 schrieb Stewart Miles:
You can customize the icon by using meta-data fields in the manifest see https://firebase.google.com/docs/cloud-messaging/android/client#manifest

Cheers,
Stewart
On Wed, Feb 1, 2017 at 1:45 AM, 'Thomas Krüger' via Firebase Google Group <fireba...@googlegroups.com> wrote:
Hi there,

as you all may know, to show a notification icon on Android Lollipop, it has to be white and transparent.
However, within the Firebase-Plugin for Unity I'm not able to set an icon. That's why it's using the app icon (- at least trying).
I obviously do not want to change the app icon. 

So is there a workaround to load and show another specified icon when on Android Lollipop?
Maybe just change something within the AndroidManifest? Since I cannot access/change the provided classes.

Best wishes,
Thomas

--
You received this message because you are subscribed to the Google Groups "Firebase Google Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to firebase-tal...@googlegroups.com.

Stewart Miles

unread,
Feb 13, 2017, 1:11:05 PM2/13/17
to fireba...@googlegroups.com
Yeah the docs aren't fantastic for this, see https://docs.unity3d.com/Manual/PluginsForAndroid.html and http://answers.unity3d.com/questions/945371/android-plugin-with-resources.html for the folder layout for Android plugins and by extension resources in Android components.

So you should be able to add your icon(s) to Assets/Plugins/Android/res/drawable/ and reference it name (see https://developer.android.com/guide/topics/resources/drawable-resource.html)

Cheers,
Stewart

To unsubscribe from this group and stop receiving emails from it, send an email to firebase-talk+unsubscribe@googlegroups.com.

To post to this group, send email to fireba...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages