mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-05-07 05:53:06 +00:00
Properly enable push notifications on core start, and fix typo (true=>pushEnabled)
This commit is contained in:
parent
fa6ba6a8e9
commit
7e3ff94ed1
1 changed files with 2 additions and 1 deletions
|
|
@ -1287,12 +1287,13 @@ void popup_link_account_cb(LinphoneAccountCreator *creator, LinphoneAccountCreat
|
|||
|
||||
- (void)startLinphoneCore {
|
||||
bool pushEnabled = [self lpConfigIntForKey:@"proxy" inSection:@"push_notification_allowed"];
|
||||
linphone_core_set_push_notification_enabled([LinphoneManager getLc], pushEnabled);
|
||||
const MSList *accountsList = linphone_core_get_account_list(theLinphoneCore);
|
||||
while (accountsList) {
|
||||
LinphoneAccount * account = accountsList->data;
|
||||
LinphoneAccountParams * accountParams = linphone_account_params_clone(linphone_account_get_params(account));
|
||||
linphone_account_params_set_push_notification_allowed(accountParams, pushEnabled);
|
||||
linphone_account_params_set_remote_push_notification_allowed(accountParams, true);
|
||||
linphone_account_params_set_remote_push_notification_allowed(accountParams, pushEnabled);
|
||||
|
||||
LinphonePushNotificationConfig *pushConfig = linphone_account_params_get_push_notification_config(accountParams);
|
||||
#ifdef DEBUG
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue