Fix token bug and print push payload

This commit is contained in:
Paul Cartier 2020-03-30 11:22:18 +02:00
parent d7e9cf6234
commit bda65d8a9f
2 changed files with 2 additions and 1 deletions

View file

@ -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]];
}

View file

@ -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 {