Hi We are planning to use libotr in our mobile app and expect it to work like this.
1. Bob opens the OTR chat screen (different from regular chat) with Alice. 2. If its the first time, we send a Apple push notification to Alice saying 'Bob wants to have OTR chat with you. Go to the app'. 3. Alice goes into the app. Bob and Alice apps establish a secure session. The app persist the session on Alice' device. The session is persisted on Bob's device as well. 4. Now Bob can send Alice messages even when her phone is switched off or off the network or the app is in the background. 5. Alice's app can restore the session on restart or whenever necessary to decrypt Bob's message. We started persisting userstate and so far not successful. I am wondering if anybody has attempted persisting the userstate successfully or any pointers in general? Once it works will be happy to send a pull request. Thanks Madhav PS: As a side note, we managed to save and restore OTR session for the java(Android) implementation by extending https://github.com/jitsi/otr4j the JSON format of the session looks like the attached. Although the attachment is in JSON format, we use BSON in the app.
otr4j-session.json
Description: application/json
_______________________________________________ OTR-dev mailing list OTR-dev@lists.cypherpunks.ca http://lists.cypherpunks.ca/mailman/listinfo/otr-dev