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
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.
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
Hi Daniel,
I am able to send a notification using OneSignal. Struggling with the Timer alone.
That resolved my issue. Thanks for the solution.
Great, happy I could help, sometimes the solution is not OutSystems ;)