Notification Service Extension modifies the content of a remote notification before it's delivered to the user. For example if a remote notification contains an image URL, Notification Service Extension can be used to fetch the image and show it in the notification content.
But how can I access actual app code in Notification Service Extension? Let's say I have a DataAccess
swift class in app code, can I access this class in Notification Service Extension?
Edit: Some folks suggested to add app code to service extension, which is not applicable in my situation.