79
Views
5
Comments
Solved
How to execute a timer at every minute
Question
Application Type
Mobile

Hi Team,

We have a situation to send the push notification to the user before 10 minutes of his prayer timing. Currently, I have API for the prayer timings. I have created a timer which will run at 4:55 AM every morning and creates a record into the entity (which i have created to store the Prayer time and Notification Time). Notification time will be calculated before the (Create PrayerTimings) entity action. In order to send a notification to the user I need to compare Current Time with Notification time every minute. But the Time Interval of OutSystems is minimum 5 Minutes only.

Now what should be the ideal approach to achieve this Use Case? Or is there any better way apart from Timer?

Thanks,

Rupesh 

2024-07-05 14-16-55
Daniël Kuhlmann
Ā 
MVP
Solution

ah great, good to read you already solved that part.

I believe it is possible with Onesignal to select a specific time to set when a notification needs to be send. This works up to 30 days ahead. If you explore this, your timer could create the OneSignal notifications in bulk with each notification having its own time when it needs to be sent, once a day.

2024-07-05 14-16-55
Daniël Kuhlmann
Ā 
MVP

Hi Rupesh,

How are you thinking this would work on a mobile. When the app is not in the foreground (so open),  it doesn't run, so no notifications would would be send. You need to implement a notification component like using firebase or pusher to achieve this. 

Regards,

Daniel

2024-04-18 05-58-56
Rupesh Wani

Hi Daniel,

I am able to send a notification using OneSignal. Struggling with the Timer alone.

Regards,

Rupesh

2024-07-05 14-16-55
Daniël Kuhlmann
Ā 
MVP
Solution

ah great, good to read you already solved that part.

I believe it is possible with Onesignal to select a specific time to set when a notification needs to be send. This works up to 30 days ahead. If you explore this, your timer could create the OneSignal notifications in bulk with each notification having its own time when it needs to be sent, once a day.

2024-04-18 05-58-56
Rupesh Wani

Hi Daniel, 

That resolved my issue. Thanks for the solution.

2024-07-05 14-16-55
Daniël Kuhlmann
Ā 
MVP

Great, happy I could help, sometimes the solution is not OutSystems ;)

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.