Ios10 add local notification instance
preface
IOS 10 discards the class uilocalnotification (UIKit framework) and adopts a new usernotifications framework to push notifications. From then on, push notifications also have their own label UN (there is no one else for this treatment), as well as a series of enhancements to the push function (two extensions and interface experience Optimization) are Apple's own sons, so pushing these functions has also become the focus of development.
This article mainly checked the relevant documents of IOS 10 and sorted out the local push notifications under IOS 10. Since they are all codes, we don't explain much. We can directly look at the codes and comments and leave a message to discuss problems.
New push registration mechanism
Registration notification (appdelegate. M):
Push local notifications
Local push notifications before IOS 10:
This article has been sorted into IOS push tutorial. You are welcome to learn and read it.