mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-01-17 11:08:06 +00:00
Update the badge count to reflect ongoing calls.
This is useful in the case an incoming call is received but Linphone is in the background. Also disable ringing once the application gets in the foreground.
This commit is contained in:
parent
03dfd7fc7b
commit
8c6e96eb80
2 changed files with 4 additions and 0 deletions
|
|
@ -111,6 +111,9 @@
|
|||
instance->currentCallContextBeforeGoingBackground.call = 0;
|
||||
} else {
|
||||
[[PhoneMainView instance ] displayIncomingCall:call];
|
||||
// in this case, the ringing sound comes from the notification.
|
||||
// To stop it we have to do the iOS7 ring fix...
|
||||
[self fixRing];
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -345,6 +345,7 @@ static PhoneMainView* phoneMainViewInstance=nil;
|
|||
int count = 0;
|
||||
count += linphone_core_get_missed_calls_count([LinphoneManager getLc]);
|
||||
count += [ChatModel unreadMessages];
|
||||
count += linphone_core_get_calls_nb([LinphoneManager getLc]);
|
||||
[[UIApplication sharedApplication] setApplicationIconBadgeNumber:count];
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue