update
This commit is contained in:
@@ -61,7 +61,10 @@ class NotificationService: UNNotificationServiceExtension {
|
||||
}
|
||||
}
|
||||
// 语音播报能力不具备,只播放默认声音
|
||||
if let broadcastKeywords = (userInfo[pushNoti_broadcastKeywords_key] as? String),broadcastKeywords.isEmpty == false {
|
||||
if GROUP.isAppointmentPushNotification(userInfo: userInfo) == true {
|
||||
bestAttemptContent.sound = UNNotificationSound(named: UNNotificationSoundName(rawValue: appointmentOrderAudio_key))
|
||||
contentHandler(bestAttemptContent)
|
||||
}else if let broadcastKeywords = (userInfo[pushNoti_broadcastKeywords_key] as? String),broadcastKeywords.isEmpty == false {
|
||||
bestAttemptContent.sound = .default
|
||||
contentHandler(bestAttemptContent)
|
||||
}else{
|
||||
|
||||
Reference in New Issue
Block a user