I try create app that can receive notification both foreground and background. For foreground, it works fine. However, I cannot find the way to make background notification work.
First, I try to update manifest to support this event.
Secondly, I add some code to my splashactivity to handle background notification.
Next, I use the following PHP code to send notification to Firebase server.
On my device, I can see the above notification.
I tap notification to open my app. However, nothing happened and device log doesn't give me any idea about what going on.