mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-01-17 11:08:06 +00:00
Fix token bug and print push payload
This commit is contained in:
parent
d7e9cf6234
commit
bda65d8a9f
2 changed files with 2 additions and 1 deletions
|
|
@ -2058,7 +2058,7 @@ static int comp_call_state_paused(const LinphoneCall *call, const void *param) {
|
|||
|
||||
const unsigned char *remoteTokenBuffer = [remoteTokenData bytes];
|
||||
NSMutableString *remoteTokenString = [NSMutableString stringWithCapacity:[remoteTokenData length] * 2];
|
||||
for (int i = 0; i < [PKTokenData length]; ++i) {
|
||||
for (int i = 0; i < [remoteTokenData length]; ++i) {
|
||||
[remoteTokenString appendFormat:@"%02X", (unsigned int)remoteTokenBuffer[i]];
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -47,6 +47,7 @@ class NotificationService: UNNotificationServiceExtension {
|
|||
NSLog("[msgNotificationService] start msgNotificationService extension")
|
||||
|
||||
if let bestAttemptContent = bestAttemptContent {
|
||||
NSLog("[msgNotificationService] received push payload : \(bestAttemptContent.userInfo.debugDescription)")
|
||||
createCore()
|
||||
|
||||
if let chatRoomInviteAddr = bestAttemptContent.userInfo["chat-room-addr"] as? String, !chatRoomInviteAddr.isEmpty {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue