Avspeechsynthesizer reading local notification

My goal is to create a app that will read the local notification to the user using avspeechsynsthisizer. I have tried this many times with messing around with app delegate which I do not know well, To try to get this to work. My main question right now is, To do this am I going to have to add something or change appdelegate or not. Thanks.

Hi @timswift

In the iOS 10 all those notifications related methods in the AppDelegate are deprecated. Instead you should use a new UNUserNotificationCenterDelegate protocol. Please take a look at this article - iOS 10 UNUserNotificationCenterDelegate Overview - cleanswifter.com. It explains the subject quite well.
Also there is a demo project -
NotificationExample/NotificationExample at master · obuseme/NotificationExample · GitHub
I hope this is helpful.

Thanks

This topic was automatically closed after 166 days. New replies are no longer allowed.