You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In my app, I want to be able to track if a message has been received by the other client. I am using Account.onInstantMessageStatus() to receive the status code from the server, but I also needed a way to know for which message the status belongs to. I then came across SendInstantMessageParam.setUserData(), which seems to be exactly what I need. However, I see that I cannot create the SWIGTYPE_p_void object without altering the source code.
I am not too familiar with SWIG and the reasoning for not being able to use SendInstantMessageParam.setUserData()out the box, but I noticed that changing the constructors to public works, and OnInstantMessageStatusParam.getUserData() returns the data correctly.
Describe alternatives you've considered
If there is an alternative solution for tracking which instant message the status callback belongs to, I would appreciate that as well!
Additional context
PJSUA2 2.14 on Java Android
The text was updated successfully, but these errors were encountered:
Describe the feature
In my app, I want to be able to track if a message has been received by the other client. I am using
Account.onInstantMessageStatus()
to receive the status code from the server, but I also needed a way to know for which message the status belongs to. I then came acrossSendInstantMessageParam.setUserData()
, which seems to be exactly what I need. However, I see that I cannot create the SWIGTYPE_p_void object without altering the source code.I am not too familiar with SWIG and the reasoning for not being able to use
SendInstantMessageParam.setUserData()
out the box, but I noticed that changing the constructors to public works, andOnInstantMessageStatusParam.getUserData()
returns the data correctly.Describe alternatives you've considered
If there is an alternative solution for tracking which instant message the status callback belongs to, I would appreciate that as well!
Additional context
PJSUA2 2.14 on Java Android
The text was updated successfully, but these errors were encountered: