I am using robbiehanson/XMPPFramework for my current project. How to get the message typing status using XMPPFramework? There XEP- 184 protocol but those are deprecated right now . Need assistance here for getting composing status in iOS . Regards, Bhat
相关问题
- Core Data lightweight migration crashes after App
- How can I implement password recovery in an iPhone
- State preservation and restoration strategies with
- “Zero out” sensitive String data in Swift
- Get the NSRange for the visible text after scroll
相关文章
- 现在使用swift开发ios应用好还是swift?
- UITableView dragging distance with UIRefreshContro
- TCC __TCCAccessRequest_block_invoke
- Where does a host app handle NSExtensionContext#co
- Swift - hide pickerView after value selected
- How do you detect key up / key down events from a
- didBeginContact:(SKPhysicsContact *)contact not in
- Attempt to present UIAlertController on View Contr
The most commonly used protocol for "contact is typing" notifications is XEP-0085: Chat State Notifications. As described in more detail there, the first message to a contact should contain an "active" state element (next to the
<body/>
element):If the contact responds with a chat state, the client can go ahead and use other states, such as "composing":
or "paused" (the user has entered text, but isn't actively typing):
or "inactive", and finally "gone" when the user ends the conversation by closing the chat window or similar.
First you import:
and then you add the following methods according to your purpose.
composing.....
Active.....
Inactive...
Gone...
Paused...
then You should write following code in appdelgate. (didReceiveMessage) method.
Ex: