we are facing problems using custom Push-Notifications with our Whitelabeled Rocektchat-App.
We added the project to Google Firebase, inserted the “google-services.json”, and registered the corresponding Server-Key and Sender-ID on our Rocket-Chat Server, as instructed here: https://docs.rocket.chat/guides/developer/mobile-apps/whitelabeling-mobile-apps#optional-start-the-app-automatically-after-build
When sending a Test-Notification the following happens:
-On the first try after Logging in on the App it says “Push-Notification was sent to 1 Device” in the Admin Panel, but no Notification is received on the phone. The Server-Log says, there is a mismatch in the sender ids, but we have triple checked that the ids are correct
-When trying to send Notification for the second time it says “There are no Tokens found for this user, [error-no-tokens-for this-user]”. The Log says:.
This Problem happens for both the Android and the iOS Version of our Apps.
The Server is running on a Linux Environment
Things we tried/checked:
-All Keys/IDs/Certificates are correct
-We recreated the Firebase project and updated the google-services file in the App
-We set up a new clean install of the Rocketchat-Server
-We restarted both the App and the Server multiple times
-In the Push-Notification Settings the Notifications are enabled and the gateway disabled
-The package names are identical for the Apps and the Firebase project
Apart from this issue, everything is working as intended, meaning a user can log in on the app and send and receive messages just like in the Official App.
Thanks in advance