nplexity / xmpp-file-transfer-demo

iOS demo application using XMPPFramework for file transfer.
43 stars 24 forks source link

Where to provide server ip (Connection details) #2

Closed EvaniRam closed 10 years ago

EvaniRam commented 10 years ago

Hey, i am new to ios and xmpp framework , i am using openfire as the server and would to connect to my server.Where should i give the server ip address in your project.

jonstaff commented 10 years ago

You don't need to provide an IP address. Your server will automatically be located by the domain portion of the user's JabberID.

EvaniRam commented 10 years ago

how can i get the File path into the textbox for OutFileTransfer method. Also i am getting the following error :

2014-11-08 16:23:19:337 FileTransferDemo[6579:60b] AppDelegate: Stream disconnected with error: (null)

jonstaff commented 10 years ago

I have no idea what you're asking.

balkrishanyadav commented 10 years ago

Hello EvaniRam, For testing single file u can drag any file in project and fetch file from NSBundle like... NSString sampleFilePath = [[NSBundle mainBundle] pathForResource:@"Image" ofType:@"png"]; NSData htmlData = [NSData dataWithContentsOfFile:filePath]; For send dynamic file you can select dynamic file from gallery and set dynamic name By UIImagePickerController.

jonstaff commented 10 years ago

These types of questions are more well-suited for the XMPPFramework Google Group. You're likely to get more answers there.

EvaniRam commented 10 years ago

thanks @jonstaff , i have a small issue while i am trying to send file to other user. my log is showing the following errors:

2014-11-10 15:23:16:487 FileTransferDemo[2584:807] XMPPOutgoingFileTransfer: startFileTransfer: 2014-11-10 15:23:16:487 FileTransferDemo[2584:807] You messed something up: Error Domain=XMPPOutgoingFileTransferErrorDomain Code=-1 "You must be connected to send a file" UserInfo=0x170460f00 {NSLocalizedDescription=You must be connected to send a file}

i was able to get the presence from other user but the file transfer fails with error : "You must be connected to send a file" .