Currently when we get message we have to manually call deliver function which works perfectly when app is online but problems when app is offline and there is no way to know when app is opened that what were the new messages that app received.
The loaded via API messages will contain the field delivered_ids, if this array contains the user's id it means that the user has marked this message as delivered.
Currently when we get message we have to manually call deliver function which works perfectly when app is online but problems when app is offline and there is no way to know when app is opened that what were the new messages that app received.