hyperledger-archives / aries-mobile-agent-xamarin

Apache License 2.0
39 stars 31 forks source link

Handling received requests and messages #22

Closed fariduca closed 3 years ago

fariduca commented 3 years ago

I have a mobile and mediator agent set up and connected. I can connect different mobile agents as well. However, I can't find where to handle received requests (and messages) to the mobile agent. I haven't found anything regarding this issue in the docs as well.

When a message arrives at the mobile agent 'message received' is prompted in the debug console however nothing else happens. The message is not handled. How to handle the received messages and requests in the mobile agent? Any help is appreciated.

fariduca commented 3 years ago

Figured it out. To handle connections yourself the AutoAcceptInvitation option in the invitation options should be set to false and I had to write a custom connection handler. As for the messages they are stored inside the wallet and can be retrieved using the IWalletRecordService.