I am using Xmpp framework for a chat Application. I can able to send file through xmppOutgoingFileTransfer Obj.
But xmppIncomingFileTransfer Obj for receiving image is not working for me. Means it doesn't enter in to delegate method "didSucceedWithData" Method.
Please share the solution
For transfer images and videos you have to upload this on your server and after complete this upload process you have to send this(Upload video/image) link to user. So user can easily download from that particular link.
Related
I am working on a xmpp client, using eJabberd as server. My question is How can I support offline file transferring?
I only want to do the offline file transferring,For example, I can transfer an image to user named as Purushottam even he is offline. When Purushottam will come back Online, the server will send him the image.
How can I do that? Is there any module for this in ejabberd ?
Thanks in advance!
Answer to question 1:
You can send it post it to your server using a HTML form upload or some REST service. After which you send a stanza to your user notifying that it needs to download the file from an accessable location on your server.
See also:
file transfer in multi user chat to muliple users
Answer to question 2:
As mentioned already: no
I know this type of question is posted earlier also.
But I didn't got any answer on that link.
I am using open fire server, XMPP, and strophe for html chat client.
now I want to transfer image to all subscriber of my pub-sub node.
Is it possible to implement file transfer using strophe?
a way maybe is upload the file to yoyur server and sen the link to the another user like a message....later the user clicks the link and download it or show the source as an image in the chat area...
I used this code in my app in order to send background sms
But i am not able to upload app on itunes it says:using non public api
#class CTMessageCenter;
can any one tell me any way to send schedule sms when application is in background
or
can any one tell me any way to send sms without presenting SMS composer
There is no "legal" (aka permitted by Apple) way to do this.
The only work around I can assume is having a webservice on a server side, which would be the one sending the messages. You're app should communicate with the server and tell him what to do (text, hour...)
You cant :) why would apple let you send sms on peoples behalf?
I am developing an app on iphone that lets user take photos, add comments & GPS location to it and send it as an email to another user.
If the recipient has installed the same app & when she clicks on the attachment the same app will launch & parse these details & show them to the recipient. (I intend to use UIDocumentInteractionController for some of the stuff here)
Problem: whats the best way to encode this data in a single file & then retrive it upon arrival from the email.
This is pretty high level, but here are the general steps:
First, register your own file type as described here.
Then, archive your data using NSKeyedArchiver.
Next, attach it to an email using MFMailComposeViewController. Make sure you give it a filename that matches the file type you registered earlier.
Finally, implement application:didFinishLaunchingWithOptions: to handle the case when a user tries to open your email attachment. (Currently, it's the fourth bullet in the method documentation.)
I am new to iPhone development. I created an iPhone application, using which user can create a Business Card kind of UI in TableView. I want to know how can i send a Business Card(which i created programmatically) data into another iPhone via SMS? I want to know the technology which i should use to sending such thing from one iPhone to another via SMS or Email, i shouldn't use WiFi/Bonjour service which can send only upto nearest area.
thanks.
Calve/
SMS wasn't designed for this, and so it probably won't work like you're describing. Here's what I would do:
You have your BusinessCard object. Upload it to your servers and give it a unique identifier. This identifier is what should be sent to the other person, whereupon they can use the identifier to download the appropriate card.
If you wanted to be super cool about it, you could maybe construct a URL like: "card://12345678890", where 1234567890 is the identifier. You could then set your app up to respond to "card://" urls. Then send the card URL around via SMS. When a user taps on the link in their SMS app, it'll automatically open up your app (providing that they have it downloaded and installed, and that nothing else has registered "card://").
For additional awesomeness, you can allow people to create "shortcuts" to their identifier (like bit.ly), so they can send around "card://my-cool-business" instead of "card://1234567890".
You could encode your business card data as a base64-encoded custom URL, assuming it isn't too large. An example of doing this kind of URL-driven data exchange (which does not require uploading anything to a server) can be found here.
I doubt that you'll be able to encode enough information in the tiny size of an SMS message (unless you were just sending compressed text, no images), but this approach would work well with email.
Where MMS is available you can send a VCard formatted object attachment by that route. The receiving phone will detect the attachment format and allow you to manipulate it.
This will also work to non iPhone devices.