fix pushnotification

This commit is contained in:
Danmei Chen 2019-04-24 12:16:46 +02:00
parent 380bbe3416
commit ff4a0d0d1f
4 changed files with 4 additions and 4 deletions

View file

@ -2394,7 +2394,7 @@ static int comp_call_state_paused(const LinphoneCall *call, const void *param) {
}
}
if ([LinphoneManager.instance lpConfigBoolForKey:@"backgroundmode_preference"] && !pushNotifEnabled) {
if ([LinphoneManager.instance lpConfigBoolForKey:@"voip_mode_preference"] && [LinphoneManager.instance lpConfigBoolForKey:@"backgroundmode_preference"] && !pushNotifEnabled) {
// Keep this!! Socket VoIP is deprecated after 9.0, but sometimes it's the only way to keep the phone background and receive the call. For example, when there is only local area network.
// register keepalive
if ([[UIApplication sharedApplication]

View file

@ -1,7 +1,7 @@
[app]
animations_preference=1
autoanswer_notif_preference=1
backgroundmode_preference=0
backgroundmode_preference=1
edge_opt_preference=0
enable_log_collect=0
file_transfer_migration_done=1

View file

@ -21,7 +21,7 @@ debug_popup_email=linphone-iphone@belledonne-communications.com
send_logs_include_linphonerc_and_chathistory=0
#use_phone_number=0
publish_presence=0
backgroundmode_preference=0
backgroundmode_preference=1
use_rls_presence=1
accept_early_media=0

View file

@ -1,7 +1,7 @@
[app]
animations_preference=1
autoanswer_notif_preference=1
backgroundmode_preference=0
backgroundmode_preference=1
edge_opt_preference=0
enable_log_collect=0
file_transfer_migration_done=1