will system loads Notification service extension and calls its didReceive(_:withContentHandler:)
for local notifications in iOS 10?
If yes how we can do that?
No. The accepted answer describes Notification Content Extensions, which allow you to present a ViewController in the expanded notification view, and works with both remote and local notification.
Notification Service Extensions, that let you change the content of the notification (attaching images, etc) do not work with local notifications. However, you can attach images as part of the process to show a local notification.
Notification Service extension is for remote notification not for local notification.
As per apple doc
UNNotificationServiceExtension An object that modifies the content of a remote notification before it's delivered to the user.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With