Closed darknessproduction closed 3 years ago
Okay I figured it. Can you change documentation. Because I lost some time to fix it. Replace this
NSString *uuid = payload.dictionaryPayload[@"uuid"];
NSString *callerName = [NSString stringWithFormat:@"%@ (Connecting...)", payload.dictionaryPayload[@"callerName"]];
NSString *handle = payload.dictionaryPayload[@"handle"];
with
NSString *uuid = [[[NSUUID UUID] UUIDString] lowercaseString];
NSString *callerName = @"caller name here";
NSString *handle = @"caller number here";
Then you can close this. Thank you for your genius work anyway :)
I will add the memo, cheers
Okay I figured it. Can you change documentation. Because I lost some time to fix it. Replace this
NSString *uuid = payload.dictionaryPayload[@"uuid"]; NSString *callerName = [NSString stringWithFormat:@"%@ (Connecting...)", payload.dictionaryPayload[@"callerName"]]; NSString *handle = payload.dictionaryPayload[@"handle"];
with
NSString *uuid = [[[NSUUID UUID] UUIDString] lowercaseString]; NSString *callerName = @"caller name here"; NSString *handle = @"caller number here";
this is so crucial to be changed in the docs. I spent hours troubleshooting.
@darknessproduction thank you for sharing the comment here ...
But what was the problem? Have you send callerName, uuid, phoneNumber in voip notification body? For me it works as it is.
make sure callerName
field inside payload.dictionaryPayload[@"callerName"]
is provided
otherwise it will crash
Hi, guys. Many thanks to @zxcpoiu. You're making the greatest work. I get this error when I receive voip push. I'm using voip certificate to send voip pushes. I send this with push if it makes sense: