![]() |
Unknown opened 2 years ago
|
![]() |
Please do not use There is no way if or how many messages are waiting for you with your approach, so it is impossible to implement method which you try to implement. Moreover, messages in XMPP are sent to the client when sender sends them - so you may receive a message while you are fetching them. For the "fetch messages since" feature, please consider using |
![]() |
thanks @hantu85, this unhealthy idea came to us because we are thinking about how to update the mobile app when a push arrives. The basic idea is to wait for a push notification to trigger an app update to be ready to open. The pushes must be processed in a short time, to correctly display the title and the data inside we must have already read the data in incomimg. And obviously if a user click on a push notification the app must be ready to open. can we handle this case? |
![]() |
@hantu85 Can you give us some guidelines or sample on how to update the client when a push notification arrives? Thanks |
Hi, I need to create a method that reads messages synchronously and all the logic needs to stay within this method. I looked for a solution on documents and blogs but with no luck, hope this is the right place.
For login I use loginAndWait, but for messages I have to use EventHandler. Is there a synchronous method in which I can receive the MessageModules?
Can you give us a sample or an idea on how to do it? something like:
thank you Luigi