Set core push notification enabled to match the value in “proxy”=>”push_notification_allowed”, to match the sdk

This commit is contained in:
QuentinArguillere 2021-07-28 16:50:40 +02:00
parent ebbc05bf6a
commit 2f24e77bb6

View file

@ -1303,7 +1303,7 @@ void popup_link_account_cb(LinphoneAccountCreator *creator, LinphoneAccountCreat
}
- (void)startLinphoneCore {
bool corePushEnabled = [self lpConfigIntForKey:@"proxy" inSection:@"push_notification_allowed"];
bool corePushEnabled = [self lpConfigIntForKey:@"net" inSection:@"push_notification"];
linphone_core_set_push_notification_enabled([LinphoneManager getLc], corePushEnabled);
linphone_core_start([LinphoneManager getLc]);