Set periodic reminder using alarm manager - notifications

I have a problem when configuring a lot of notifications using the alarm manager.
there will be 5 schedules that I make, starting on Monday to Friday.
my reminder configuration on wednesday. when I activate the reminder it should only appear 1 notification, but 3 notifications appear at once, which includes the previous day, namely Monday and Wednesday. to solve this problem, please give me a solution like what?

Related

expo react native: match the current date to the list of deadline in the background and notify the user if matched

I need help on how to implement the local notification this way:
I have a list of dates/deadlines in array example(
Deadlines[January 2, 2022, January 3, 2022, January 5, 2022] ), that I wanted to compare if the current date(today) is matched to the deadline
Everyday it will check in the background(app is close) if it’s match then I wanted to notify the user 2 times at a specific hour which is 7am and 12pm,
I can’t find it in expo or any example on How to do that? I tried to use the DailyNotificationTrigger but I don’t think its what I need because it’s notifying the user even though there is no deadline on that particular day, please help thanks
my update on this is to use the built-in calendar of the device and using the expo calendar library I was able to fill those gaps.

BPM Human Task scheduling

We use Camunda to run business processes but my question is more about general BPM patterns than a specific tool that implement it.
Let suppose the following very simple use case and a homemade application on top of it that use BPM engine API to query tasks and complete them.
Let suppose that Action 1 will be auto assigned to John and Action 2 to Bob. From my comprehension of BPM, when the process start, Action 1 is created and assigned to John. When John complete the Action 1, the Action 2 is created and assigned to Bob. And that's what we want because Bob could not start working on Action 2 if Action 1 is not yet completed. Fine...
Now suppose that as the team manager, I want to schedule activities of John and Bob. I'm thinking about introducing an initial task handled by me to configure a planning.
When the process now start, a new task is created and is assigned to me. I want in my homemade application to query the BPM engine in order to get all tasks (actives and inactives) in order to add planning information (planned start date and due date). For example, I want to specify that:
Action 1 should start on 01/01/2021 and should be closed on 03/01/2020.
Action 2 should start on 04/01/2021 and should be closed on 05/01/2020.
With this kind of information, John and Bob could connect to the task list and see that a "not yet started" task is waiting for them on a specific time range. The main goal of this is to manage a team calendar of activities.
I don't see how to implement that in BPM due to the fact that, in my comprehension, tasks are created when the process reach them so we could not have information about "Not Yet Started" tasks.
Any ideas? Suggestions? Bests practices?
Tx
I asked a question above, but if the answer is "Action 2 still requires Action 1, and I don't want people to see the tasks before their start date." Then the model would look like this -
The timers would be set to the start dates the manager picked. I have a strong opinion that the tasks shouldn't be in the list if the user can't work them. So if they should not work it before the start date, we shouldn't have it in their task list. This is different than say, a report on the status of the process, which certainly can show that we are waiting until date X to issue Action 1. There is also a way to model it so that someone can say "Yeah, you know what, I want to start this now" and trigger the action early from that dashboard.
To have the tasks for John and Bob active at the same time, you could use a parallel gateway ... and then filter the tasks in a custom task list based on the configurations you made ...
If you want to keep the sequence of tasks (which is the better option imho) you can still set variables in your planning task up front and then read these values when the second task is started by registering a TaskListener on your model.

ODOO -12 NOTIFICATION SETUP

I am a starter in odoo. Can anyone help me to find a solution for the problem mentioned below?
in CRM Module , i want a mail when manger should be notified of any changes made to the Records and manager should be notified 90 days prior to expiry of subscription and automatically
Can anyone help me to achieve this goal. Thanks in advance.
Guna Str
1) manager should be notified of any changes made to the Records
- Define an automated action to send the email if the value of the Stage field changes on an update of the record.
2) manager should be notified 90 days prior to the expiry of subscription
- You can do with the track_visibility with customizing the logic based on the explain way(days calculating) or for mail you also do with the automated action(with python way).

Set time for ElasrAlert slack notification

I have ElastAlert set up and all of my alerts coming in once per day with aggregate set at days:1. But I get the alert in the evening and I'd prefer to get the slack alert in the morning, the alerts from the previous 24 hours included.
Can I set the time of day I want my notification to come through?

How to limit daily-usage even if user sets his clock back?

I have an IOS app that needs to track duration of free usage per day. Once it crosses a threshold, the user would have to purchase the app or wait for the next day to unlock his free-usage minutes for that day.
Is there a native way to detect if the user has set his clock back? Assume there is no Internet connection to sync with a time server
UIApplicationDelegate can get the following method called on significant time changes:
- (void)applicationSignificantTimeChange:(UIApplication *)application
You can try that one. From my point of view, I'd recommend to check current date on every application launch or willBecomeActive and store those dates as list somewhere securely. If current date is different from the last date, add it to your list. If list has more than 30 items (or how many you need) disable trial functionality.