0
print-Anweisung funktioniert nicht innerhalb Benachrichtigung Inhalt Erweiterung notificaton Inhalt Erweiterung in ios debuggen können, obwohl ich in der Lage bin, die Aufklebertext und andere Felder zu ändern, unten ist mein CodeNicht 10 Benachrichtigung
class NotificationViewController: UIViewController, UNNotificationContentExtension {
@IBOutlet weak var label: UILabel!
override func viewDidLoad() {
super.viewDidLoad()
print("inside viewDidLoad of notificationViewController")
}
func didReceive(_ notification: UNNotification) {
self.label?.text = notification.request.content.body
print("inside didReceive of notificationViewController")
}
}