Preparing Your App For iOS 12 Notifications

Preparing Your App For iOS 12 Notifications

6 years ago
Anonymous $oIHRkISgaL

https://medium.com/@cogitator/preparing-your-app-for-ios-12-notifications-7918ac010597

in Short : With the launch of iOS 12, there are several new notification features such as new authorization options, dynamic quick actions, and user interaction within notifications. Learn more about how to implement these features and if they are right for your app.

In 2016, Apple announced a new extension that will allow developers to better customize their push and local notifications called the UNNotificationContentExtension. The extension gets triggered when a user long presses or 3D touches on a notification whenever it is delivered to the phone or from the lock/home screen. In the content extension, developers can use a view controller to structure the UI of their notification, but there was no user interaction enabled within the view controller — until now. With the release of iOS 12 and XCode 10, the view controller in the content extension now enables user interaction which means notifications will become even more powerful and customizable.