😎Notification chat
I'll show you an example of what you need to know for chat notifications to work!
Last updated
I'll show you an example of what you need to know for chat notifications to work!
Last updated
ЭSo here we are in the chat! Next, here's a list of what you need to know for background notification to work! I remind you that the project will be published on Sketchub.
Here is a screenshot.
And now in the code that you need to pay attention, if you have a different name for the activity or icons, then change.
be sure to set the permission, otherwise it won't work.
we go to the manifest, where we noted and this code is needed.
Well, the last screen, where I noted this, is the sending of a notification.
The structure of the base is as follows. • When sending a notification, the following fields are created: ° from - The UID of the sender is passed here ° message - The message is sent here ° read - Flag 0 or 1 is written here (0 - message not read, 1 - message read) P.S. If the flag is 1, then this notification will not be received, since the service will consider it read ° title - Notification title ° to - The UID of the recipient is transmitted here (by this field, the service will find out who the notification is assigned to)
@ l e k s from 4pda thanks!=)