Instead of sending the message content through push gateway, Apple, and Google, if you are running Enterprise/Gold edition the Secured Push Notification sends just the ID of the message.
Once the ID reaches the user’s device, the message is retrieved from Rocket.Chat server and the notification is created.
Please note that this process works for both situations if the user is using Rocket.Chat’s push gateway or his own.
In Privacy, you can configure what amount of information you want your push notification to have.
Go to Administration
2. Search 'Push' in Settings
3. Go to Privacy
Above are the default settings.
The first two toggles are self-explanatory.
If Fetch full message content from the server on receipt is enabled and you're running the Enterprise Edition or Gold, the notification payload, that is sent through the Apple Push Notification service or Firebase Cloud Messaging service contains no message content. Instead, it contains only the message ID which is then used by the mobile app to fetch the message content from the Rocket.Chat server to display the notification. If something happens and the app cannot reach the server in time, a generic push notification message is shown. When the setting is disabled, the whole message content is sent via push notification payload so the mobile app can display the notification right away.