mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-01-17 11:08:06 +00:00
Fix bug where the ring sound would not stop in case
of a push notification.
This commit is contained in:
parent
6133060d76
commit
7f9abfed95
1 changed files with 8 additions and 0 deletions
|
|
@ -207,6 +207,14 @@
|
|||
[[LinphoneManager instance] enableAutoAnswerForCallId:callid];
|
||||
else
|
||||
[LinphoneLogger log:LinphoneLoggerError format:@"PushNotification: does not have call-id yet, fix it !"];
|
||||
|
||||
if ([[[UIDevice currentDevice] systemVersion] floatValue] >= 7) {
|
||||
// iOS7 fix for notification sound not stopping.
|
||||
// see http://stackoverflow.com/questions/19124882/stopping-ios-7-remote-notification-sound
|
||||
[[UIApplication sharedApplication] setApplicationIconBadgeNumber: 1];
|
||||
[[UIApplication sharedApplication] setApplicationIconBadgeNumber: 0];
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue