-
-
Notifications
You must be signed in to change notification settings - Fork 27
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Work on background with sync #19
Comments
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, The basic idea is to wait for a push notification to trigger an app update to be ready to open. |
@hantu85 Can you give us some guidelines or sample on how to update the client when a push notification arrives? |
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
The text was updated successfully, but these errors were encountered: