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
1
vote
1 answer

Can't build anymore on Cordova after activating iOS app group and service notification extension

I have an mobile application under : - Cordova 8.1.2. - iOS platform 5.0.0 - onesignal-cordova-plugin 2.4.7 - Xcode 10.2.1 Everything was ok. Building &co. Then I tried to activate the iOS Service notification extension in order to have Media…
1
vote
0 answers

UNNotificationAttachment video preview has wrong orientation

I'm attaching mp4 file, that was recorded using AVCaptureMovieFileOutput, to notification in UNNotificationServiceExtension Apparently, video frames is upside down and orientation is specified in metadata If I open video in notification it's played…
1
vote
2 answers

UNNotificationServiceExtension - hide when app is active

I'm using UNNotificationServiceExtension to add images to iOS APNS notifications. It works well except that the notification displays even when the app is active (in the foreground). When the app is active I'd like handle notifications using a…
1
vote
1 answer

Notification content extension setup

I've set up a Notification Content Extension for my app, but it's not called on a remote push. I've read the apple dev guide below to the letter, and I've set up everything as it…
1
vote
1 answer

APNS shows just one pending notification

I 've successfully implemented push notification service for my ios app. I 've generated the required certificates and the code works. The problem arises when the device is disconnected from the internet and receives some notifications (which are…
1
vote
1 answer

Is it possible to get apns-collapse-id in the notification service extension?

I am trying to access to the apns-collapse-id to change the content of the notification based on some conditions. Can the apns-collapse-id be accessed in the extension?
1
vote
1 answer

How to detect host app state in a Notification Service Extension?

A Notification Service Extension downloads a media file to display it as attachment of the UNNotification. However when the host app is in foreground, no notification is displayed, so it is unnecessary to for the notification extension to download…
Manuel
  • 14,274
  • 6
  • 57
  • 130
0
votes
0 answers

Flutter iOS adding UNNotificationServiceExtension to the app

I'm trying to alter the push notification received via APNs before showing it to the user, and I feel like UNNotificationServiceExtension is the answer... but I can't find a way to trigger the didReceive function even if I add the extension through…
0
votes
0 answers

How to call flutter code from ios extension

I would like to call flutter code after i receive ios notification in UNNotificationServiceExtension. It seems i cant use channels from ios extensions. I would like to execute this code without the need of user to tap on notification. Sharing…
DixieFlatline
  • 7,895
  • 24
  • 95
  • 147
0
votes
0 answers

Filtering iOS Push Notifications Documentation

I have an iOS app which has the Notification Service Extension to intercept incoming remote notification to update/enhance the content. The problem here is, the notification gets displayed to user. If the app is unable to update the notification…
0
votes
0 answers

App not opening when tapping on rich push notification action button *EVEN WITH .FOREGROUND*

I'm implementing rich push notifications with two action buttons using a notification service extension. however I experienced an issue when tapping on the action button app does not launch. override func didReceive(_ request: UNNotificationRequest,…
0
votes
0 answers

Example reference style implementation of macOS Notification Service Extension is killed because of sluggish startup

I have tried to get a Notification Service Extension working on macOS 12.6.1 (Intel). It was not possible for me to get the Notification Service's didReceiveNotificationRequest() called. That was approved using a NSLog() that doesn't appeared in…
0
votes
0 answers

Error Xcode 14 executable file not found NotificationService

When I installed the NotificationService extension in the app I had these errors without any modification on the file NotificationService.swift: Does somebody know how to resolve this? Error detail: Details Executable Path is a Directory…
0
votes
0 answers

Getting PrecompileSwiftBridgingHeader in flutter iOS. When I try to add Notification Service extension

I am working on Image notification in Flutter iOS. When I try to integrate notification service extension to handle Image notification keeps giving me below error. Xcode version: 13.3 Flutter version: 3.0.4 Cocoapods:…
0
votes
1 answer

Swift - Can I use realm in Notification Service Extension?

As the title, can I use realm in Notification Service Extension ? When I receive a notification, I need to get some data from realm, then edit notification content before showing to user. I do below in the Podfile pod 'RealmSwift' target…