Open wesamodeh opened 2 months ago
Hi @wesamodeh, I don't see anything obvious that could be a problem.
I would recommend first checking that the OneSignalNotificationServiceExtenstion is actually running by adding these two lines to your code:
if let bestAttemptContent = bestAttemptContent {
/* DEBUGGING: Uncomment the 2 lines below to check this extension is executing
Note, this extension only runs when mutable-content is set
Setting an attachment or action buttons automatically adds this */
print("Running NotificationServiceExtension")
bestAttemptContent.body = "[Modified] " + bestAttemptContent.body
OneSignalExtension.didReceiveNotificationExtensionRequest(self.receivedRequest, with: bestAttemptContent, withContentHandler: self.contentHandler)
}
If the OneSignalNotificationServiceExtenstion
runs, you will see your notifications have the word "[Modified] ".
If the OneSignalNotificationServiceExtenstion
runs but you are not able to see the image, then something else is the issue, please let us know about the first step.
How can we help?
i implemented the OneSignalNotificationServiceExtenstion but when i send a notification includes image didnt appear , can u help ?
NotificationService code :
AppDelegate code :
PodFile code
Code of Conduct