Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
BC
public
linphone-iphone
Commits
7e3ff94e
Commit
7e3ff94e
authored
May 25, 2021
by
QuentinArguillere
Browse files
Properly enable push notifications on core start, and fix typo (true=>pushEnabled)
parent
fa6ba6a8
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
Classes/LinphoneManager.m
Classes/LinphoneManager.m
+2
-1
No files found.
Classes/LinphoneManager.m
View file @
7e3ff94e
...
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment