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
2
votes
0 answers

Notification Service Extension integration with Flavor in Flutter

I have a flutter project with the following flavors. 1. Develop 2. Stage 3. Production flutter doctor Doctor summary (to see all details, run flutter doctor -v): [✓] Flutter (Channel stable, 1.22.3, on macOS 11.0.1 20B29, locale en-GB) [✓]…
Sagar Ghag
  • 105
  • 2
  • 4
2
votes
0 answers

Detect active phone call in Notification Service Extension with CallKit in iOS/Swift

I would like to detect if the user is on the phone or not (has an active ongoing call) in my Notification Service Extension whenever a push notification comes in. I have tried using the CXCallObserver to do this, however this only shows me the…
2
votes
1 answer

Notification Service Extension Lifecycle

I have a question about Notification Service Extension Lifecycle, I have searched but I cant find a suitable answer for my question. The question is what happen when new notification come when old notification is in processing (not called…
2
votes
1 answer

Notification service extension - hide previous notifications

Take, for instance, a messaging app that only presents notifications with in this format: You have X new messages When the user receives a message, the app will present a notification: You have 1 new message When it receives a second message, a new…
pepsy
  • 1,437
  • 12
  • 13
2
votes
1 answer

How can I create ProgressBar in notification in iOS?

Is there Any way to implement a Progressbar in ios to show it is something is Uploading or Downloading in Local Notification I have referred. Notification Service Extension and Notification Content Extension So is there…
user7853453
1
vote
1 answer

How to determine when iOS app notification service extension process is about to be terminated?

Notification service extension (NSE) allows to process notifications in iOS app before showing them to the user (e.g., for message decryption): class NotificationService: UNNotificationServiceExtension { override func didReceive(_ request:…
esp
  • 7,314
  • 6
  • 49
  • 79
1
vote
0 answers

Logging to a file in shared container iOS

I'm studying iOS push notifications (user facing). I have done the following steps: Requested User's permission to show notification Registered for remote notifications and obtained the device token. I'm using the command line way to push…
1
vote
0 answers

UNNotificationServiceExtension, Locale returns wrong languageCode

I am trying to localize push notifications, passing in data localization map with key as a language code. For the modification notification using UNNotificationServiceExtension, but stuck on the issue: Locale.current.languageCode always returns en…
1
vote
0 answers

To handle multiple content extension in Notification

I had to show different UI for multiple categories using Notification content and service extension, for example, one UI can have an image with only title and subtitle, another can have some info with target buttons. How to handle as a content…
1
vote
1 answer

Path to file(image) in Notification Service Extension folder

I am trying to add a local image(icon) as an attachment to a remote notification on iOS 12. In other words the image URL is not passed in the notification userInfo but is determined internally based on other criteria in userInfo. Therefore I want a…
1
vote
0 answers

Does NotificationServiceExtension work with local notifications?

I created a small test project, enabled push notifications and remote notifications and added the template NotificationServiceExtension. When the notification is shown, the title isn't modified as the template would suggest, nor can I attach the…
Aaron Bratcher
  • 6,051
  • 2
  • 39
  • 70
1
vote
2 answers

iOS Get user location in Notification Service Extension

Is it possible to use CoreLocation framework in UNNotificationServiceExtension? What I've tried: class NotificationService: UNNotificationServiceExtension { var contentHandler: ((UNNotificationContent) -> Void)? var bestAttemptContent:…
1
vote
0 answers

How do I view NSLog on Xcode 11 iOS 13?

In Objective-C, I want to print and view a variable value in NotificationServiceExtension's didReceiveNotificationRequest method. How do I print and where can I see the log? I tried the following and checked Xcode console. I'm unable to find the log…
Beu
  • 1,370
  • 10
  • 23
1
vote
1 answer

Image is not displayed in ionic ios push notification

I am stuck in displaying image in ios push notification in ionic4.I am not getting where issue is.I tried with notification service extension and also content extension.but still image is not display in notification.It is working perfect in…
Pushprajsinh Chudasama
  • 7,772
  • 4
  • 20
  • 43
1
vote
0 answers

Realm deadlock condition

Actually in my application i have notification service extension from their updating my realm db which is in shared group folder and main application also write on same. Some time my app stops working due to deadlock arises and app always fails to…
Ishu
  • 12,797
  • 5
  • 35
  • 51