Hey,
We have updated our Mobile Notifications package from 2.0.0 to 2.0.2 and Android notifications (although working) stopped opening the game when pressed, provided that the game is not in the background (so if I killed the game and then click on a notification).
I have checked and it seems that 2.0.1 also behaves the same way and 2.0.0 works properly (all on the same codebase, only difference is the package version).
Does your game extend the UnityPlayerActivity (or use it’s own)?
If so, it’s best to configure it in Notification Settings, cause otherwise goes into fallback and tries to figure it out.
Thanks for the reply @Aurimas-Cernius , this fixed the issue for me.
We are using com.google.firebase.MessagingUnityPlayerActivity as our entry point, just had to set that as the ‘Custom Activity’ in the Mobile Notifications settings.
Not sure why it worked without that setting beforehand though.
Maybe our code that tries to figured it out has gotten worse. But I don’t think it was 100% reliable before either.
So when extending activity it is strongly recommended to set that in notification settings.
Hello, I have the same issue and configurating the notifications does not seem to work. Notifications keep trying to call the default activity not the extended one even though I have selected the custom activity option and enter my activity. Notifications seem to work fine if I reset the version back to 2.0.0. but stops working if I set it to 2.0.1 version. Any ideas what could cause the problem?
We are using com.google.firebase.MessagingUnityPlayerActivity as our entry point, just had to set that as the ‘Custom Activity’ in the Mobile Notifications settings.
We are using com.google.firebase.MessagingUnityPlayerActivity as our entry point, just had to set that as the ‘Custom Activity’ in the Mobile Notifications settings.
This Works For me.
shouldn’t the entry point be… ‘name.of.your.bundle.UnityPlayerActivity’. ?
Our problem is the game just opens when we tap on the stacked notifications, so on a group of them, but if we tap individually game doesnt open, so when there is just 1 notification never opens. @Aurimas-Cernius ? Any idea why this is happening?