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
(void)xmppIncomingFileTransfer:(XMPPIncomingFileTransfer )sender
didReceiveSIOffer:(XMPPIQ )offer
{
DDLogVerbose(@"%@: Incoming file transfer did receive SI offer. Accepting...", THIS_FILE);
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.
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
(void)xmppIncomingFileTransfer:(XMPPIncomingFileTransfer )sender didReceiveSIOffer:(XMPPIQ )offer { DDLogVerbose(@"%@: Incoming file transfer did receive SI offer. Accepting...", THIS_FILE);
dict = [[NSMutableDictionary alloc]init]; [dict setObject:sender forKey:@"sender"]; [dict setObject:offer forKey:@"offer"];
//[sender acceptSIOffer:offer]; }
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 {
sender = [ dict valueForKey:@"sender"];
}
Please help me to sort out this issue.
Thanks is advance.