Not logged in. · Lost password · Register
Forum: MatriX RSS
Avatar
mirodroid #1
Member since Dec 2017 · 5 posts
Group memberships: Members
Show profile · Link to this post
Subject: SendAndAck()-Callback Never Called
Hi Alex,

I'm using SendAndAck() Method to make sure that the message arrives at server (The server(prosody) implemented XEP-198(with mod_smacks)).

Code:
  1. public void SendAndAckTest(Matrix.Xmpp.Client.Message message) {
  2.             Client.SendAndAck(message, (o, e) => {
  3.                 //This is never called....
  4.             });
  5. }

XML:

  1. SendXml:
  2.  
  3. <message type="chat" to="+49979341@192.168.1.126" xmlns="jabber:client">
  4. <body>Test</body>
  5. <active xmlns="http://jabber.org/protocol/chatstates" />
  6. </message>
  7.  
  8. SendXml:
  9. <r xmlns="urn:xmpp:sm:3" />
  10.  
  11. ReceiveXml:
  12. <a h="34" xmlns="urn:xmpp:sm:3" />

Can you please help me to solve this issue?
Thanks.
This post was edited on 2017-12-14, 14:37 by Alex.
Avatar
Alex #2
Member since Feb 2003 · 4317 posts · Location: Germany
Group memberships: Administrators, Members
Show profile · Link to this post
MatriX is checking on the counter in the h attribute.
Only if it matches the internal counter of MatriX it will reaise the callback to you.

  • Are you using the very latest build?
  • Can you post the complete Xml log, so that we can very the counters?
Avatar
mirodroid #3
Member since Dec 2017 · 5 posts
Group memberships: Members
Show profile · Link to this post
I'm using the latest nuget package (MatriX.Xamarin.Android v2.1.0)

This is my full XML log: https://pastebin.com/iGrenqea
Avatar
Alex #4
Member since Feb 2003 · 4317 posts · Location: Germany
Group memberships: Administrators, Members
Show profile · Link to this post
do you see any errors beeing reported in the OnError event?
Avatar
mirodroid #5
Member since Dec 2017 · 5 posts
Group memberships: Members
Show profile · Link to this post
Unfortunately the OnError event doesn't report any errors.
Avatar
Alex #6
Member since Feb 2003 · 4317 posts · Location: Germany
Group memberships: Administrators, Members
Show profile · Link to this post
I was able to reproduce the issue on Android, however it works fine on other platforms.
We will work on a fix and publish new packages.
Avatar
mirodroid #7
Member since Dec 2017 · 5 posts
Group memberships: Members
Show profile · Link to this post
I tried this on iOS and it didn't work either.
Avatar
Alex #8
Member since Feb 2003 · 4317 posts · Location: Germany
Group memberships: Administrators, Members
Show profile · Link to this post
yes, same problem there. New packages are coming soon...
Avatar
Alex #9
Member since Feb 2003 · 4317 posts · Location: Germany
Group memberships: Administrators, Members
Show profile · Link to this post
new packages have been pushed
Avatar
mirodroid #10
Member since Dec 2017 · 5 posts
Group memberships: Members
Show profile · Link to this post
It's working now, thanks!
Close Smaller – Larger + Reply to this post:
Verification code: VeriCode Please enter the word from the image into the text field below. (Type the letters only, lower case is okay.)
Smileys: :-) ;-) :-D :-p :blush: :cool: :rolleyes: :huh: :-/ <_< :-( :'( :#: :scared: 8-( :nuts: :-O
Special characters:
Forum: MatriX RSS