Why my test-receive-notifications app needs multiple restarts to receive notifications?
I have this kotlin application. It’s sole purpose is to test if the FCM notifications are received (so the most basic setup here) The problem I have and cannot get a root cause for this is that it takes me multiple times of starting / restarting / stopping the application (and android studio as well), to see on the emulator (Pixel 8 Pro) that indeed those notifications are received. And they really do (the app is in the background for this) and they are received every time once it works, but as I said it takes multiple times of restarting app / android studio and I cannot come to a conclusion what is exactly the case here, and why on first run of the application, then background it, send notification it does not receive those. Any help there? I am not a kotlin / android dev, I just want to test the integration from the backend service that sends those notifications. NOTE: for testing this I am using google console messaging to send notifications.