Skip to content

Custom iOS notification sound

This article explains how to implement custom iOS notification sounds.

  1. Add audio files to the Xcode project picture 0
  2. Set notification sound
    swift
     let content = UNMutableNotificationContent()
     content.title = title
     content.body = body
     content.sound = UNNotificationSound(named: UNNotificationSoundName(rawValue: "ra2-warning-zi-zi.wav"))