unnotificationrequest Questions
1
This was working good before iOS 15
let center = UNUserNotificationCenter.current()
let content = UNMutableNotificationContent()
content.sound = UNNotificationSound.init(named:UNNotificationSoundN...
Bookcraft asked 22/9, 2021 at 1:10
5
Solved
I have a bare-bones app to play with push notifications. I have the Notification Service Extension working. I can send a remote notification with an image URL and have it load.
I can't seem to get...
Bookman asked 15/10, 2016 at 6:26
2
Solved
I have a trigger to show a notification to the user:
let content = UNMutableNotificationContent()
content.title = "Title"
content.body = "Body"
content.sound = UNNotificationSound.default
let tr...
Kathrynekathy asked 24/3, 2019 at 14:15
3
I know that the limit of local notifications is 64 for UILocalNotification. It's written in Apple Dev Docs. But UILocalNotification is deprecated in iOS 10. Instead this one, Apple proposes to use ...
Elsyelton asked 15/4, 2017 at 8:44
4
Solved
I have a Firebase childAdded event listener for the notifications table in my app that I would like to trigger push notifications when the app is in the background.
Here is the listener:
@objc f...
Gove asked 16/1, 2017 at 21:35
2
I'm working with UNNotificationRequest and I want that the notification popup immediately when I click on the button. but in this case it appears when I quit the application.
Here's my code
@IBAct...
Cornelia asked 26/4, 2017 at 14:26
2
Solved
Because UILocalNotification is now deprecated, I moved my code to the new UNNotificationRequest API.
It states: 'cancelLocalNotification' was deprecated in iOS 10.0: Use UserNotifications Framewor...
Peak asked 11/8, 2017 at 12:35
3
I have an app with multiple local notifications. When I try to clear all the delivered notifications, I call this removeAllDeliveredNotifications method. It's working fine till ios 11.1. In ios 11....
Reld asked 5/1, 2018 at 6:13
0
I try to test a simple method which are supposed to create and deliver a notification for iOS 10.
func displayPlaceNotificationContent() {
let unMutableNotificationContent = generateNotification...
Shannanshannen asked 12/9, 2017 at 11:55
1
I can't have a iOS 10 local notification (UNNotification) fire properly across time zones.
In time zone +10 hours, I want it to fire at 17:00:00, and schedule it.
Later when I look at what notifi...
Bigamist asked 27/4, 2017 at 7:0
1
Solved
I want to access my application data in AppDelegate.swift whenever the app receives an action response. I was trying to use the
func userNotificationCenter(_ center: UNUserNotificationCenter, did...
Rahm asked 1/7, 2017 at 18:43
3
Solved
I am trying to create a local notification for my app using Apple's UNUserNotificationCenter.
Here is my code:
let center = UNUserNotificationCenter.current()
let content = UNMutableNotification...
Rancidity asked 24/2, 2017 at 5:7
4
Solved
I'm trying to use the new UNNotificationContentExtension to display a custom user interface for local notifications but only the default notification alert is shown.
I created the extension with ...
Mahayana asked 24/6, 2016 at 8:52
1
Solved
This is my code for UNUserNotification
func scheduleNotification() {
UNUserNotificationCenter.current().getNotificationSettings { (notificationSettings) in
switch notificationSettings.authoriza...
Elsi asked 18/2, 2017 at 17:15
1
Solved
I'm attempting to setup a function that takes in an integer and schedules a local notification n days in the future. I'm getting an error that I can't convert type Date to DateComponents. I haven't...
Cammie asked 4/2, 2017 at 15:40
3
Solved
when using xcode 8 doing the push notification setting, unlike xcode 7, xcode 8 need developer turn on push notifications capabilities switch ( located at TARGETS -> AppName -> Capabilities a...
Prod asked 1/9, 2016 at 8:50
1
Solved
I'm try to find the scheduled fire date of a UNNotificationRequest object.
I'm fetching the pending notifications requests like this:
UNUserNotificationCenter.current().getPendingNotificationRequ...
Quiteris asked 21/11, 2016 at 16:42
3
In UILocalNotification we use NSCalendarUnitMinute like repetition ..... but I can't find in iOS 10 UserNotification doc ... How can I use NSCalendarUnitMinute like repetition in iOS 10 UserNotific...
Longtin asked 14/6, 2016 at 6:18
1
TL;DR: What key needs to be set in the APNs notification payload JSON to correspond to the threadIdentifier property of the UNNotificationContent object? e.g. the "category" key corresponds to the ...
Knickerbocker asked 30/8, 2016 at 8:40
1
© 2022 - 2024 — McMap. All rights reserved.