UI Local Notification – Background Reschedule
I’m learning to develop application for ios with swift, and I’m one doubts, already googled and i not found.
I’m creating a to-do list app, and was wondering if there is a way to reschedule a notification when it appears to the user
For example the user registers a task every two hours, then the notification appears to the user and reagendo the new notification
Can anyone help me?
- How can I dynamically resize a header view in a UICollectionView?
- Cannot subscript a value of type with an index type int
- How can a get the auto layout size of the UICollectionViewCells in iOS 8? (systemLayoutSizeFittingSize returns size with zero height in iOS 8)
- Custom UISearchBar with UISearchController
- How to determine if the iPhone 6+ (plus) is in Standard or Zoom mode
- wkwebview with location services
Solutions Collect From Internet About “UI Local Notification – Background Reschedule”
You can’t do it in background if your app is suspended. But UILocalNotification supports recurrent notifications.
All you have to do is to declare the recurring interval:
notif.repeatInterval = NSDayCalendarUnit;
You can find more details here.
Note that you can’t set custom intervals. You must use the default ones provided by Apple.
- How To Perform iOS App Validation From the Command Line
- How can I use Swift REPL with iOS SDK
- Xcode-beta 8. Can't create core data
- Make UISearchBar background clear
- how to read firebase database
- Topic Won't Save in Firebase
- How to declare exponent/power operator with new precedencegroup in Swift 3?
- Is there anyway to import XCode snapshots into a new SVN repository?
- How do I find the number of days in given month and year using swift
- How do I set selected tab in UITabBarController using StoryBoard?
- Asynchronous NSURLConnection Throws EXC_BAD_ACCESS
- Hiding tabBar showing black bar in Ios7
- Xcode 4 and jailbroken iPhone
- iPhone libxml2 not found during build
- Query plist that is an array of dictionary