Questions tagged [unusernotificationcenter]

Manages the notification-related activities for your app or app extension. Local notifications and push notifications are both ways for an iOS application that isn’t running in the foreground to let its users know it has something for them. Use this tag for the queries related to the new Rich Notifications introduced in Swift 3.

Use the shared UNUserNotificationCenter object to schedule notifications and manage notification-related behaviors in your app or app extension. The shared user notification center object supports both local or remote notifications in varying capacities. Use this object to perform the following types of tasks:

  • Request authorization for displaying alerts, playing sounds, or badging the app’s icon in response to local or remote notifications. (Authorization is required for all user interactions.)

  • Declare the notification types that your app supports and the custom actions (if any) that the user may perform when those notifications
    are delivered.

  • Schedule the delivery of notifications from your app.

  • Manage app-specific notifications displayed in Notification Center.

  • Get the notification-related settings for your app.

The notifications that you schedule directly from your app are known as local notifications because your app creates them locally on the user’s device. By contrast, remote notifications are created by your own server and delivered to the user’s device via the Apple Push Notification Service (APNS).

370 questions
-1
votes
1 answer

in Xcode how can i show local notification of both "foreground and background" mode?

my below code only sends local notifications when foreground. how can i show local notification of both "foreground and background" mode? can anyone provide a code ? thank you o.k @main struct ozApp: App { …
-1
votes
1 answer

Local Notification userinfo not getting in launch options

I'm sending LocalNotification from my iOS app. All notifications are arriving successfully. I'm handling those notifications using notification userInfo which is receiving from didReceive response function and facing no issues when app is in either…
Harsha
  • 760
  • 1
  • 7
  • 21
-1
votes
1 answer

UNUserNotification "NSInternalInconsistencyException", reason 'use +currentNotificationCenter'

im using kivy to create an IOS project im successfully deployed the IOS project to Xcode. Im trying to implement the UserNotifications framework and im accessing it through pyobjus but when i run the app. it raises this error for some reason and i…
TwistStack
  • 39
  • 6
-1
votes
3 answers

UNUserNotificationCenter/ UserNotification not found in Xcode 11 iOS13 -

I am trying to setup Notifcations on Xcode 11 in iOS13 but i tried adding the linked frameworks(in pic) but still doesn't recognize the module. Any suggestions? import UIKit import Firebase import UNUserNotificationCenter @UIApplicationMain class…
Di Nerd Apps
  • 770
  • 8
  • 15
-1
votes
1 answer

How do I set up local user notifications that are set off by certain dates

I am trying to set up local user notifications. I have a set of data that I want to be notified about on specific dates. The data is sorted in a class with information such as a name, information, and a date. Because of other code, I have…
-1
votes
2 answers

how to get push notification when app is open?

I am working on swift 4.2.I am getting notifications when app is background but i am not getting when app is active. func userNotificationCenter(_ center: UNUserNotificationCenter, willPresent notification: UNNotification, withCompletionHandler…
-1
votes
1 answer

iOS Schedule local notification is not working Swift

I have issues with Local Notification, i have UIDatePicker for setup time for notification, and i have ViewController for choose day in which notification will repeat. If i chose repeat every Friday, it's will not work, or another day. But for every…
-1
votes
3 answers

Is it possible to schedule a function to run at a specific time

Been researching this topic, curious if it's possible to schedule a function to run at a specific time same way you can schedule local notifications to trigger at a specific time. Would need this to run even if the app is closed or in the…
Bowenac
  • 493
  • 8
  • 19
-2
votes
1 answer

How to set local notifications once every 28 days starting from a particular date in Swift?

I'm trying to create a local notification in swift every 28 days starting from a given date. For example, if the user enters the date 2020/01/31, I need to create a local notification on 2020/02/28 and so on. How do I do it using Swift 4 in Xcode…
-2
votes
1 answer

iOS import header files in different system version in iOS 10.0

It is always true , and I don`t know how to work it, it is emergency, please have a look at https://i.stack.imgur.com/WoGt0.png
Oliver
  • 1
  • 1
1 2 3
24
25