Questions tagged [unnotificationserviceextension]

UNNotificationsServiceExtension is one of the extensions that can be added to a regular iOS app. It would be like a small separate app that can process UNNotifications arriving to the app.

UNNotificationsServiceExtension is one of the extensions that can be added to a regular iOS app. It would be like a small separate app that can process UNNotifications arriving to the app.

One reason for adding this extension is that even when the associated iOS app is not running, the extension can receive the UNNotification and process it, including changing/setting the badge number.

It can share data with the associated iOS app through a shared UserDefaults.

88 questions
5
votes
1 answer

Why are notifications not removed with removeDeliveredNotifications?

Up until recently (I believe prior to iOS 12 release), removing remote push notifications from the Notification Center worked as expected using removeDeliveredNotifications. Suddenly, without any code change in the Notification Service Extension,…
5
votes
1 answer

UNNotificationServiceExtension's didRecieve not called

I moved step by step for getting rich push notifications. Here they are : Created Notification service extension with plist : NotificationService didRecieve : override func didReceive(_ request: UNNotificationRequest, withContentHandler…
Nitish
  • 13,845
  • 28
  • 135
  • 263
5
votes
1 answer

Will iOS Notification Service Extension delete attached file from device?

I got a strange problem. iOS Notification Service Extension will delete the attachment from device. I use SDWebImage to display and cache image, and I implemented a Notification Service Extension to display a image in the notification alert view.…
4
votes
1 answer

How to handle crash from notification service extension crash?

Getting weird from notification service extension I think this might be due to sending of AWS event from receivedNotification method which might be taking more time that causes OS killing it. if this the scenario then how should i handle the crash…
4
votes
2 answers

iOS Push Notification Service Extension Not Consistent Work

In our app, we notify users using Push-notifications, but if user didn't received push (e.g. user's device is offline), then we send him SMS. Since APNs doesn't provide delivery report, we have implemented our own method of sending reports to…
3
votes
1 answer

Flutter/iOS: How can I use pubspec.yaml's App version in my NotificationServiceExtension Info.plist file?

The Flutter App version from pubspec.yaml can be used in the regular iOS Info.plist file by changing entries…
3
votes
0 answers

UNNotificationAttachment is not working on iOS 14

I implemented UNNotificationServiceExtension to attach image thumbnail on push notification. (By using UNNotificationAttachment). It works really well on iOS 13. But after updating to iOS 14, it is not working though. There is no thumbnail image on…
3
votes
2 answers

iOS SpringBoard doesn't load Notification Service Extension

I'm sending a regular push notification and expect it to be updated by Notification Service Extension on iOS13. But this doesn't happen and I see the original notification only. Console logs contain: error 11:52:35.116942+1100 SpringBoard…
3
votes
1 answer

Unable to schedule a task from within a UNNotificationServiceExtension - Error: BGTaskSchedulerErrorDomain error 1

As the title states, i am currently unable to schedule a task from within a UNNotificationServiceExtension. I would like to schedule the task when the following function is called and thus a push is received: func didReceive(_ request:…
3
votes
1 answer

iOS Rich Push notifications with Xcode, Swift3 but cannot get image

I am trying to create iOS Rich Push notifications with Xcode, Swift3. I already make sure about push notifications (subject, body) with curl command of php but I can't create Rich Push Notifications referred to in this document. I added Notification…
3
votes
3 answers

Media Attachment in iOS 10 Push Notifications

I'm struggling with adding an image to my Push Notification in iOS 10. I have added a Notification Service Extension, and have used the following code: override func didReceive(_ request: UNNotificationRequest, withContentHandler…
2
votes
0 answers

Notification Service Extension not getting invoked in macOS

I have created a Notification service extension as target to the main MacOS application. I want to update the content of my remote notification using this extension but due to some reason the extension is not getting invoked to update my remote…
Vipul Gupta
  • 239
  • 5
2
votes
0 answers

Notification Service Extension not invoked

I have an iOS app which uses Notification Service Extension (NSE) to update/enhance an incoming remote notification. I have added push notification capability and enabled remote notification in Background Modes. During startup, I'm requesting user's…
2
votes
0 answers

Notification extension not built when building the app from the main target

Quick overview over the problem: Clicking run the app selecting the notification extension target, files within the notification are debugged normally, function just as expected. However when I run the app selecting the main app target, the same…
2
votes
1 answer

iOS 14 Widget cannot be updated from Notification Service Extension

I have an iOS application + a Notification Service Extension + a Widget. Whenever I update in the app something in UserDefaults, that is read by the widget and I call WidgetCenter.shared.reloadTimelines, the widget does update instantly. If I try to…