Currently I need my app to fire notifications twice a week for 6 or 12 weeks , I am using the UNUserNotificationCenter to fire my notifications. I have got them firing twice a week using a UNTimeIntervalNotificationTrigger which repeats on the certain day of week and time ok, but I cannot seem to figure out how to get them to stop after a certain date .
I have researched and the only thing i can see is to create them all at once, is there a max how many you can create at once, as I further develop my choices will get larger ie 5 times a week for 24 weeks.
Is there any way that this possible without having to create them all at once ?
Thanks
Is there a way to stop notifications firing after a certain date?
If the user doesn't even open your app during the 6 or 12 weeks, you can't stop the notification.
If user use the app, after fire the notification at the first time, I think you can get the specific date after 6 or 12 weeks, let's say it endDate. So you can check the date between nowDate and endDate during app is running:
if (nowDate < endDate)
{
// do nothing, still fire the notification
}
else
{
//cancle the notification
}
is there a max how many you can create at once
No, you can create as much as you want.
Is there any way that this possible without having to create them all
at once ?
Here comes the same problem, if the user doesn't even open your app during the 6 or 12 weeks, how could you create the other notifications if you don't create them all
at once?
So, I would recommend you to use a remote-notification and then you can control send or not send notification to certain user everyday.
Refer :The document about-user-notifications;
Related
I am using simple template to recieve notification on mobile, upon mail arrives (mail arrives to specific folder) > notification with simple headline and subject of email.
I would like to tune it to recieve the notification only from 8:00 - 16:00 and thats it.
I am playing with start of hour: startOfHour()
But so far struggle to define the condition properly.
Regards,
V.
You could create a scheduled query every hour and then create a condition that will only run if it is a certain time like in the picture example.
#{startOfHour(convertFromUtc(UTCNow(),'Eastern Standard Time', 't'), 't')}
For learning purposes, I'm developing an app in app inventor 2 which should send to myself an SMS message with a list of bills with due date equals the current day -1. In other words, if the bill due date is tomorrow, it should send me an SMS today.
I already got the list of bills from tinyDB and I tried use clock.timer() to trigger the SMS. But the problem is when the clock triggers the SMS it sends a lot of messages and do not stop. I want it be sent only one time.
If you want to receive the SMS when the app is closed, you will need to look into app inventor services.
...which should send to myself an SMS message with a list of bills with due date equals the current day -1.
It would help if you provide a screenshot of your relevant blocks, but shouldn't it be the current day +1? The current day -1 would be yesterday. That would explain why you keep getting the message and it doesn't stop.
I need to check events for debuging a service that has many events .
Windows event viewer sorts events by date time but there is a big problem.
for example
event 1 time is 12:32:11
events 2 time is 12:32:11
events 3 time is also 12:32:11
event 2 is after event 1 and before event 3.
but because they have same time in (HH:MM:SS) format , event viewer do not show order correclty.
I think it shows logs with same time,alpahabetically or based on other parameters .
does event logging save millisecond for windows application logs?
if yes,
Is there any way or any third party application to view events log really ordered by date and time when hour , minute and second are same?
if you checkout an event detail,in xml view ,there is a property named TimeCreated SystemTime
Thanks #chenjun for pushing me in right direction
Answering my own question to help people with same problem
unfortunately , Windows do not save event's time milliseonds part in windows log>application !
Is there a way for me to make multiple all-day events at weird intervals. If so, is there a way to make it a template so I can do it faster?
I have a very repetitive business that has identical deadlines for every project I am given. Currently, I have to add all of these deadlines into my outlook calendar manually. I'd like a short cut where I can select a template or something that automatically programs the various all-day calendar items that I currently create manually.
For instance, I get a project today and I want to make an all-day reminder in 15 days to remind me to complete my first task. 7 days later, I need an all-day reminder for my second task. 45 days later, I need a reminder for my third task.
The other scenario is deadlines. I want to add an all-day event in my outlook calendar for the final deadline for a project. I'd like a 15 day reminder and a 5 day reminder to appear on my calendar as all-day events. I know there is a way to add a single reminder, but if it pops up while I'm away from my desk, I tend to ignore the reminder. An all-day calendar item is much harder to ignore.
Is there some way to automatically do this through a macro or function of MS Outlook of which I'm unaware. I keep my life in outlook, so I'd like for all of my deadlines to appear there as well.
TIA
What happens, if I send multiple ShellToast notifications from background agent at once, for example in ToDo list app I want to notify that 3 tasks should be finished today?
Is it allowed or recommended? Would the user see all three toasts or only the first one?
The scheduled agent only runs once and it's up to you to manage which toast will be shown. In those scenarios you should be using a counter...possibly.
The way I've worked around this sort of thing in the past is just track a time or which toasts have been shown in sort of a queue and just show one every update so you could just rotate through your queue throughout the day until the tasks in app are no longer valid. Or, based on the phone's time, determine what to show (they fire every 30 min or so).
Ultimately, the optimal way is probably having one toast that says "You have 3 tasks to complete" etc etc.
Hope one of those solutions might help!
// Jed