My application works with the server. The server can send system notifications to those that the user should not see, but can send notifications for a dialogue with the user.

So, the only thing I thought of was to mark a flag in the message itself and navigate it.

Googled and did not find any tips from Google about this.

But I decided to find out from developers with experience, is there any standard implementation or through flags?

    1 answer 1

    No one knows what your "notice" is. If it is push notifications, then you can create a list of message types on the client that need to be shown to the user and see if the type of a specific message is in the list of messages displayed. But it’s better to do it on the server, since if you have a new type and you forget it in the list, it will not be shown.

    • You mean the type of message I get here is gcm.getMessageType(intent); ? At the moment I have 3 standard types that are ESSAGE_TYPE_SEND_ERROR, MESSAGE_TYPE_DELETED, MESSAGE_TYPE_MESSAGE. But gsm itself assigns the type when sending ... or when the server sends a notification, can you assign it your own type? - Aleksey Timoshchenko