- Home /
Question by
jayadratha · Aug 04, 2017 at 08:49 AM ·
notificationpush notification
How to show custom notification in Unity FCM
I'm using Unity FCM. I also have attached onMessageReceived. I have a android native lib to make custom notification which works cool.
Now when the app is in foreground onMessageReceived get the message immediately and from the onMessageReceived function I'm sending the message to my android native lib which shows custom notification. Its working.
But when the app is in background onMessageReceived doesnt gets called until I open the app manually. So no custom notification gets created until I open the app manually.
Is there any solution for this issue?
Comment
Your answer
![](https://koobas.hobune.stream/wayback/20220612131913im_/https://answers.unity.com/themes/thub/images/avi.jpg)