diff --git a/Linphone/GeneratedGit.swift b/Linphone/GeneratedGit.swift index 5cc2080c9..b3d3ee67b 100644 --- a/Linphone/GeneratedGit.swift +++ b/Linphone/GeneratedGit.swift @@ -2,6 +2,6 @@ import Foundation public enum AppGitInfo { public static let branch = "master" - public static let commit = "4feae7fcc" + public static let commit = "4c45a9bb1" public static let tag = "6.1.0-alpha" } diff --git a/Linphone/Localizable/en.lproj/Localizable.strings b/Linphone/Localizable/en.lproj/Localizable.strings index 297c15dc6..9d3aa4a62 100644 --- a/Linphone/Localizable/en.lproj/Localizable.strings +++ b/Linphone/Localizable/en.lproj/Localizable.strings @@ -537,6 +537,8 @@ "uri_handler_config_success_toast" = "Configuration successfully applied"; "username" = "Username"; "username_error" = "Username error"; +"Voicemail" = "Voicemail"; +"New message" = "New message"; "web_platform_forgotten_password_url" = "https://subscribe.linphone.org/"; "web_platform_register_email_url" = "https://subscribe.linphone.org/register/email"; "website_contact_url" = "https://linphone.org/contact"; diff --git a/Linphone/Localizable/fr.lproj/Localizable.strings b/Linphone/Localizable/fr.lproj/Localizable.strings index 70e732766..35936f1de 100644 --- a/Linphone/Localizable/fr.lproj/Localizable.strings +++ b/Linphone/Localizable/fr.lproj/Localizable.strings @@ -534,6 +534,8 @@ "uri_handler_config_success_toast" = "Configuration appliquée avec succè"; "username" = "Nom d’utilisateur"; "username_error" = "Erreur dans le nom d'utilisateur"; +"Voicemail" = "Messagerie vocale"; +"New message" = "Nouveau message"; "web_platform_forgotten_password_url" = "https://subscribe.linphone.org/"; "web_platform_register_email_url" = "https://subscribe.linphone.org/register/email"; "website_contact_url" = "https://linphone.org/contact"; diff --git a/msgNotificationService/NotificationService.swift b/msgNotificationService/NotificationService.swift index 6f9643832..f36c6406d 100644 --- a/msgNotificationService/NotificationService.swift +++ b/msgNotificationService/NotificationService.swift @@ -97,6 +97,13 @@ class NotificationService: UNNotificationServiceExtension { */ if let bestAttemptContent = bestAttemptContent { + if let aps = request.content.userInfo["aps"] as? [String: Any], let alert = aps["alert"] as? [String: Any], let locKey = alert["loc-key"] as? String, locKey == "MWI_NOTIFY_STR" { + bestAttemptContent.title = String(localized: "Voicemail") + bestAttemptContent.body = String(localized: "New message") + contentHandler(bestAttemptContent) + return + } + createCore() if !lc!.config!.getBool(section: "app", key: "disable_chat_feature", defaultValue: false) { Log.info("received push payload : \(bestAttemptContent.userInfo.debugDescription)")