How to transfer file when receiver is offline in XMPPP Protocol? Which extension have to use? Any sample code available for iOS?
You need to store file somewhere and send link as described in Out Of Band Data extension. Message will be delivered when recipient will be online.
You can check that your receiver is offline. So If receiver is offline than you have to upload your message to your server using web service. And your receiver have to get all offline messages using web service after xmpp stream connect.
This is best way for offline message. Please do like this and let me know if any problem.
Related
I know it's possible because of the existence of APIs and applications that do this.
As far as I can tell, however, the relevant APIs are undocumented.
How can I read previously sent and received SMS messages via iCloud?
InflatableDonkey is an open source project that downloads iCloud backups.
SMS messages are stored in target/backups/<icloud_username>/<hash>/<date_str>/HomeDomain/Library/SMS/sms.db, which is an SQLite3 database.
I have developed an messaging application, now i want while sending a message from our App to any of our contacts from address book if that contact doesn't have our App then that message should be sent into the default messages App. I know that is possible but the other part is if someone don't have the App in their device and trying to send a message from messages App and the receiver has our App then that user should receiver should receive that message into our App as well.
Thanks in advance!
Not Possible
iOS app can access only those data for which Apple supplies a documented public API. iOS can not access outside of the sandbox until Apple provides a public API for it. So intercepting/reading an incoming SMS not possible.
I'm sending only text, but I don't know how to send image/url, videos and
integrate that in the chat application in iOS using XMPP.
Please help me.
Please note that you should
Provide what you have done so far.
Search for answers first.
Please check existing answers
question 1
question 2
question 3
question 4
There are two basic approaches to send media data
inband (message with attachment - refer to existing answers)
out-of-band (upload media file to server and send URL in message)
Sending inband data should only be used for small media data. I recommend to use the out-of-band approach.
Out-of-band solutions supported by XMPPFramework
XEP-0065
XEP-0096
Your own XMPP extension
You are the most flexible when you use your own extension, but a standard XMPP client will not understand this. If you implement your own clients the I recommend this approach as follows.
Send media message
Upload media file to server.
Send message with content attribute and out
Receive media message
Parse message received and detect content type and out-of-band file name
Download media file from server.
Delete media file from server.
Example for your own XMPP message extension
<message from=... to=... id=... type=chat>
<body></body>
<myapp xmlns=mycompany:myapp content=image>
<out_of_band_file>myuniquefilename.jpg</out_of_band_file>
</myapp>
</message>
This way you may define your own content types like image, video, audio.
I'm writing an xmpp ios chat app which connects with an openfire server.
The app needs to be able to download all the messages that were missed by the user while the app was closed. So I will need a way to save the missed messages sent on the server, does anyone know a good way to do this? Is there a plugin for something like this, or would this require a custom plugin or something else?
Openfire, like most other XMPP servers, already stores the messages sent by users, when the receiving bare JID was offline, so that it can send those message to the client when it (re-)connects.
See also:
XEP-0160 - Best Practices for Handling Offline Messages
XEP-0013 - Flexible Offline Message Retrieval (supported by Openfire)
I want to read SMS messages from Inbox,Draft,and sent from my blackberry device programmatically.
Would any one will help me.
There is only way to access SMS messages, implement MessageListener and intercept messages when they are sending/receiving. There is no API to access SMS messages already saved in device memory (i.e already received).
See the BlackBerry Developers Knowledge Base article:
What is - Different ways to listen for SMS messages