want to play specific mp3 (URL) as notification sound

I want to play specific mp3 (URL) as notification sound. What is the feature name? Could anyone please give me example code?

Replies

You can specify the notification sound name in the aps payload:

Code Block
"sound": "default"

or in the UNMutableNotificationContent of the Notification Service Extension:

Code Block
content.sound = UNNotificationSound.default


I don't believe that mp3 is a valid sound format or that a URL is accepted.