we are currently building our own whitelabel rocket.chat-app and are running into a problem with push notifications - namely that we do not receive any. The app is logged into the server, we can send and receive messages, but are not getting any notifications. When we send a test push, the response is “There are no tokes for this user”, even if we just chatted on this users account. We followed this troubleshooting guide, setting up firebase, the app and the server accordingly.
If we use the official Rocket.Chat App and switch the server to gateway, we can receive notifications. However, if I got this right, we cannot use the gateway when rolling our own whitelabeled app.
I would obviously love if someone could tell me what we are doing wrong, but I am mostly posting because I am at a loss as to how to investigate this. What can we look at to figure out where this is going wrong?