/ Published in: Objective C
The process required for accepting or rejecting an invite within Unity.
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
Invite *inviteToRespondTo = yourContactInvite; [self respondToUnityInvite:inviteToRespondTo withAccept:YES andCompletionBlock:^(bool success, NSString *errorMessage) { if(success) { NSLog(@"Invite was successfully accepted"); Profile *senderProfile = [[Profile alloc]init]; senderProfile.entityId=inviteToRespondTo.sourceEntityId; [self readUnityObject:senderProfile withCompletionBlock:^(id object, bool success, NSString *errorMessage) { if(success) { Profile *readProfile = (Profile *)object; self.pendingInvites=temp; } else { } }]; } else { NSLog(@"%@",errorMessage); } }];