私は、特定の時刻(午前8時)にユーザー入力なしで通知を送信し、非表示のUILocalNotification
の代わりに新しいUNMutableNotificationContent
を使用し、トリガーにユーザー入力を使用しない方法を見つけようとしていますそれはむしろ時間です。すべての説明が見つかった場合は古いですが、ios 10とswift 3は含まれません。毎日通知Swift 3
これまでの内容
認可ViewController.swiftでお知らせ
let localNotification = UNMutableNotificationContent()
// localNotification.fireDate = dateFire
localNotification.title = "title"
localNotification.body = "body"
localNotification.badge = 1
localNotification.sound = UNNotificationSound.default()
Notification.swift
override func viewDidLoad() {
UNUserNotificationCenter.current().requestAuthorization(options: [.alert, .sound, .badge], completionHandler: {didAllow, error in
})
}
私は、私は他のものの間のトリガと要求を設定する必要があります知っているが、それを得るために正確にどのようにイムわかりません働く