nplexity / xmpp-file-transfer-demo

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

Filetransfer set autoacceptfile No #27

Open Arbaz7786 opened 9 years ago

Arbaz7786 commented 9 years ago

Hello I am trying to develop a functionality when one user send the message to other user and other user have option to accept or reject that file transfer.

Thanks a lot for providing such demo which allows us to transfer file to one user to another user.

But In your method

I have stored sender and offer in dictionary and By defining a method given below I am trying to achieve the accept the file transfer.But nothing happens.

-(void)acceptFromSpark {

XMPPIncomingFileTransfer *sender =   [[XMPPIncomingFileTransfer alloc]init];

sender = [ dict valueForKey:@"sender"];

XMPPIQ *offer = [[XMPPIQ alloc]init];
offer = [dict valueForKey:@"offer"];

 [sender acceptSIOffer:offer];

}

Please help me to sort out this issue.

Thanks is advance.