This was working good before iOS 15
let center = UNUserNotificationCenter.current()
let content = UNMutableNotificationContent()
content.sound = UNNotificationSound.init(named:UNNotificationSoundName(rawValue: sound))
let request = UNNotificationRequest(identifier: UUID().uuidString, content: content, trigger: trigger)
center.add(request)
User was getting notification sound, after iOS 15 I have to add
content.body = "Hello iOS 15"
Anyway to send local notification with sound only on iOS 15?
Looked deeper on this, we are having the same issue. Best I can tell iOS 15 wont deliver "blank" notifications, not sure if this is a "bug" or intended I couldn't find any documentation around this. We ended up using AudioServicesPlaySystemSound instead for our specific use case. Not sure if that would help you or not.