linphone-iphone icon indicating copy to clipboard operation
linphone-iphone copied to clipboard

pushNotificationEnabled issue with push notifications and PushRegistry

Open eliasalzaghrini opened this issue 2 years ago • 2 comments

I am on Linphone SDK > 5.0 on iOS I want to manage locally both Push Notifications and PushKit (Without Linphone). When pushNotificationEnabled = true, notifications are working, but PushRegistry is managed by Linphone. And when pushNotificationEnabled = false, notifications are no longer working, but PushRegistry is corrrectly managed locally.

Can anyone help me?

eliasalzaghrini avatar Apr 06 '22 17:04 eliasalzaghrini

+1

mhisham avatar Apr 17 '22 09:04 mhisham

I found a solution by doing a turnaround, set pushNotificationEnabled = false, then all you have to do, is to add UIApplication.shared.registerForRemoteNotifications() In the didUpdate method for PushKit after receiving the PushKit token, so it will manually call the registerForRemoteNotifications method

eliasalzaghrini avatar Apr 18 '22 12:04 eliasalzaghrini