In iOS 10 I use new frameWork UNNotification .When setting UNNotificationTrigger I want to set a fire Date on UNNotification. But I can't find set a fire Date in UNNotificationTrigger's properties. So How can i set a fire Date in UNNotificationTrigger. I want set a fire Date in UNNotificationTrigger, how can i set
UNNotificationTrigger about fireDate
2.5k Views Asked by Tuesz At
1
There are 1 best solutions below
Related Questions in TRIGGERS
- PL SQL After Delete Trigger Not Inserting Record
- change content button with trigger
- Insert into Change Log based on Trigger After Update
- Animation Trigger (Storyboard + Trigger) in C#
- delete trigger to delete row in another table in another database sql
- Add extra column in insert with instead of trigger
- Check if inserted row is the same as current
- SQL Trigger Error Code
- Trigger vs. Dependency Property precendence
- Mysql #1235 error code, when create 2 triggers with different purposes
- if x not in(select y from table) in oracle
- Edit DataGrid Cell on mouse over
- SQL Trigger Update Average
- SQL Trigger doesn't get fired
- Get deleted values from 3 tables and put in 1 table
Related Questions in IOS10
- Send a command to Siri
- I can not test my App on my device anymore
- UNNotificationTrigger about fireDate
- MPMediaItemArtwork init(image:) deprecated in iOS 10.0
- Xcode 8.1 Still has Autolayout issue in Storyboard
- Copying files from bundle to Libraries folder (IOS10, Swift3, xcode 8.2)
- Model is running iOS 10.2 (14C92), which may not be supported by this version of Xcode
- unable to have a unique ios device, as advertising identifier returned as 00000000-0000-0000-0000-000000000000 after ios 10
- Run any app in iOS 10+ from command line without jailbreaking
- Local notification does not show custom action button
- Memory leaks when using UIImagePickerController in camera mode
- Custom Controls are not displaying in MobileVLCKit media player
- how to implement multiple local notification not a single notification for swift 3
- How to persist the state in IMessage in ios when user switches from one chat to another
- Siri is recognising phrases from my AppIntentVocabulary.plist, but it's not using the VocabularyItemIdentifier values associated with those phrases
Related Questions in UNNOTIFICATIONTRIGGER
- UNNotificationTrigger about fireDate
- What is best iOS GPS (CLLocationManager) battery saving technique
- Trigger UILocalNotification for every 14 days (fortnightly) Swift
- UNUserNotification for next 15 days for taking medicine
- Scheduling repeating local notification in the future
- How to get the remaining time of pending UNNotificationRequest?
- ios 10 swift 3 add more than 64 local notifications does not keep soonest
- Set repeat notification trigger using DateComponents
- Repeating local notification removes previous pending local notifications
- Random Repeating Local Notifications in Swift
- Swift UNNotification - Repeat Interval after Fire Date
- UNLocationNotificationTrigger not triggering
- Swift UNUserNotification does not trigger sound
- Scheduling local notifications to repeat daily from tomorrow in Swift
- Daily local notification on iOS
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
There are two types of triggers in User Notifications framework:
UNTimeIntervalNotificationTrigger - Used for creating a notification with a set interval time:
Fire in 30 minutes (60 seconds times 30) ,
UNCalendarNotificationTrigger- Used for creating a notification at a certain date as in your case and for repeating with specific criteria:
The solution (Swift 3) for you would be to convert your date to a dateComponent and this can be done by: