Comments (3)
do you mind giving me a code snippet that you set up so I can look into this? Thanks
from dllocalnotifications.
Hi @d7laungani , so, assuming you create a notification that repeats every day, I think the date components would look like this:
calendar.components([.hour, .minute], from: date)
Even if this date
is a date from next month, the notification will start to get fired from tomorrow (or even today if the current time is before the specified hour) because the day info gets cut off by the date components.
In order for it to work properly, you'd have to do some complicated tricks like, create a non-repeating notification for next month first and then create another repeating one for after the firing date.
I know it's stupid and Apple should really do something about it, but it has been that way for many years now. Unless that is taken care of, I honestly don't feel much benefit to use this library.
from dllocalnotifications.
from dllocalnotifications.
Related Issues (20)
- How to fire notification on alternate days at a fix time HOT 1
- Documentation incomplete on ReadME HOT 1
- Cannot delete notification with identifier HOT 1
- How to schedule a notification that will repeat with some frequency after specific time passes HOT 2
- Feature Ask: Custom Repeats HOT 2
- Identifier was made private
- podfile install issue HOT 2
- Crash when set Date to nil HOT 2
- Support required
- Help me! Support required HOT 1
- firstNotification.launchImageName not working HOT 2
- How to delete notification with identifier ? HOT 1
- SPM support
- CancelNotification crash HOT 3
- userInfo
- Add setting of content.badge
- Fire Notification Daily but After a certain date
- if i can change interval to less than 10 seconds than notification not work on specific time
- repeat interval minute is not working
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dllocalnotifications.