Questions tagged [notification-content-extension]
14 questions
8
votes
1 answer
WKWebView in Notification Content Extension never loads while phone is locked
In NCE (Notification Content Extension) i use a WKWebView, which loads local and remote content
however, while the phone is locked, the method
func webView(_ webView: WKWebView, didFinish navigation: WKNavigation!)
will never get called and…

Peter Lapisu
- 19,915
- 16
- 123
- 179
6
votes
1 answer
Dismiss IOS Notification from NotificationContentExtention
Is it possible to dismiss/cancel a local notification from a button with in NotificationContentExtension?
I was only able to dismiss the NotificationContentExtension itself, but not the entire notification.
if #available(iOSApplicationExtension…

YardenST
- 5,119
- 2
- 33
- 54
6
votes
3 answers
How to handle UNNotificationAction when app is closed?
How to handle new iOS10 Notification Action when app is closed (not in background) ?
when app is minimalized everything works fine with:
UNUserNotificationCenter.current().delegate = x
and handling it in
class x: UNUserNotificationCenterDelegate {
…

Adam Smaka
- 5,977
- 3
- 50
- 55
3
votes
1 answer
IOS - Sending http requests when application is in background after triggered from UNNotificationAction
Im using a notification content extensions with customized action (Accept, Dismiss).
When pressing dismiss I'm trying to send an https request to my server.
Keep getting -1009 error (The Internet connection appears to be offline).
Application is…

TalMihr
- 1,528
- 1
- 15
- 31
2
votes
0 answers
Notification Content Extension not working in MacOs
I've set up a Notification Content Extension for my app, but it's not getting called(tried both local and remote push). I've read the Apple dev guide, and I've set up everything as it…

Vipul Gupta
- 239
- 5
2
votes
0 answers
Notification Content Extension Header Height
How can the height of the 'Header' to a content extension be ascertained at run time (including the dismiss button)?
I have a content extension that lazy loads content, and then is dynamically resized by manipulating the preferredContentSize of the…

Dan Carlson
- 996
- 1
- 12
- 18
2
votes
2 answers
Dismiss UserNotificationsUI - UNNotificationContentExtensionResponseOption
I am setting multiple local Notification and I have set number of actions to notification . like snooze , show , close .
func didReceive(_ response: UNNotificationResponse, completionHandler completion: @escaping…

Akash Shindhe
- 558
- 4
- 16
1
vote
0 answers
Custom buttons in IOS notifications using Notification Content Extension
IOS push notifications can be enhanced by using the following extensions:
Notification Service Extension - modify/enhance the content of the notification
Notification Content Extension - enhance the UI of the notification
It is possible to add…

NightFuryLxD
- 847
- 5
- 15
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…

Gaurav Prakash
- 31
- 1
- 4
1
vote
1 answer
iOS update push in content extension
iMessage updates the rich push when it's on the screen. You can see what is user is typing RIGHT NOW, and message will be added to your conversation.
So the question is: how i can catch new push notification, when i'm already looking at opened rich…

Alexey Kuznetsov
- 159
- 1
- 13
0
votes
0 answers
IOS - action button is not visible in local push notification
Following is code in objective-c to add action button during app launch -
UNUserNotificationCenter *center = [UNUserNotificationCenter currentNotificationCenter];
UNNotificationAction *ActionBtn1 = [UNNotificationAction…

vk100
- 49
- 3
0
votes
0 answers
IOS - UITapGestureRecognizer is not working when screen is locked
I am adding an UITapGestureRecognizer on an image for content extension. it is working when phone is unlocked but when phone is locked, tap doesn't prompt the lock screen.
this is the code -
UITapGestureRecognizer *selectImageTap =…

vk100
- 49
- 3
0
votes
2 answers
IOS : add action to image in content extension push notification
I am showing multiple images in form of a grid in my content extension. how can I add an different action for every image.
I know we can add action for button. Is it possible to add action for image too.

vk100
- 49
- 3
0
votes
1 answer
How to stop a custom notification from expanding?
I have a notification content extension that displays a few different content/formats depending upon the payload content of the push, and so correspondingly have a few different categories that get set.
Most of the notifications are expandable and…

Gruntcakes
- 37,738
- 44
- 184
- 378