When retrieving the payload in the AppDelegate the nickname
is null as the returned format is not a string, have a look:
[AnyHashable(“sendbird_call”): {
command = {
“call_type” = “direct_call”;
cmd = CALL;
“delivery_info” = {
type = push;
};
“message_id” = “77516625-606d-44a6-85c0-9ddf2be1d92d”;
payload = {
“call_id” = “F33282EA-D30E-4592-906E-961861023497”;
callee = {
“is_active” = 1;
metadata = {
};
nickname = “iPhone 8+ iOS 14”;
“profile_url” = “”;
role = “dc_callee”;
“user_id” = ;
};
caller = {
“is_active” = 1;
metadata = {
};
nickname = John; // ← Here, can’t retrieve it
“profile_url” = "https://firebase6d";
role = “dc_caller”;
“user_id” = 36GH980;
};
capabilities = (
“turn_changed”
);
constraints = {
audio = 1;
video = 0;
};
“custom_items” = {
};
“is_video_call” = 0;
“sbcall_short_lived_token” = "eyJ0eXAiOiJKV1QiLCJhbQ";
“turn_credential” = {
password = "9wSJccqGk8=";
“transport_policy” = all;
“turn_urls” = (
“turn:turn-18-194-104-205-eu-1.calls.sendbird.com:5349”
);
username = "1688936182:F33282EA-D3****8043UlJYMA==";
};
};
“sequence_number” = 0;
type = dial;
version = 1;
};
“is_voip” = 1;
“push_alert” = “Incoming call from John”;
“push_sound” = “ringing.mp3”;
“push_tracking_id” = “”;
“receiver_type” = user;
“session_key” = {
key = “eyJ0eXAiOiJKVZW50Il19.USsafdCzn2sYzGDhz6QH8vwkaqkdQkWId4willX7ahk”;
topics = (
“push_acknowledgement”
);
};
“user_id” = *****;
}, AnyHashable(“aps”): {
alert = “Incoming call from John”; //Default localization content nickname included
category = “sendbird_mesg”;
“mutable-content” = 1;
sound = “ringing.mp3”;
}]