UILocalNotification alarm sound does not trigger when app is in Active state iOS Swift
Code:
func application(_ application: UIApplication, didReceive notification: UILocalNotification) {
if application.applicationState == .active {
//here play the sound using AVPlayer
}
}
Comments
Post a Comment