Suggestions

close search

Push notification

When your app becomes disconnected from Stringee server, you can not receive real-time udpates as described in Real-time updates. In this case, you use Stringee Push Notification to keep your app's data updated.

Check React Native Push Notification to see how to set up Push Notification with Stringee.

Stringee push notification data has the following format:

{
    data = {
        map = {
            data = {
                map = {
                    avatarUrl = "";
                    convId = "conv-vn-1-OZQMBPBUWM-1553965638358";
                    convName = Demo;
                    createdTime = 1554261740264;
                    displayName = hoangnam;
                    from = user1;
                    isGroup = 0;
                    message = {
                        map = {
                            content = Alo;
                            metadata = {
                                map = {};
                            };
                        };

                    };
                    msgId = "msg-vn-1-OZQMBPBUWM-1553965654245";
                    seq = 2;
                    type = 1;
                };
            };
            stringeePushNotification = "1.0";
            type = "CHAT_EVENT";
        };
    };
}