Stay connected with your application, even offline! This post covers how to set up scheduled local notifications in Mendix Native apps, providing timely reminders and updates directly on your devices without the need for an internet connection.
Dependencies :-
Go to your MX Studio pro,
1.Open your ACT_SendNotification nanoflow -> Replace your Display Notification activity with Schedule Notification activity.

2. Double click on Schedule Notification activity & Configure the values.
i) Date :- EndOfCurrentMinute
ii) Body :- $Body
iii) Title :- $Title
iv) SubTitle :- $SubTitle
v)Play Sound :- true
vi)Notification ID :- empty
vii) Action Name :- empty
viii) Action guid :- empty

Now run the application & test it.
After running the application successfully send the notification & wait for end of the current minute, You will get the notification.
Cancelling Scheduled Notifications:-
1.Create a new nanoflow ACT_CancelAllScheduledNotification.
2.Open your ACT_CancelAllScheduledNotification nanoflow -> Drag & Drop Cancel All Scheduled Notification activity.

3. Now go to your Home_Native page -> Take a call nanoflow button(Cancel All Scheduled Notification) & Select previously created ACT_CancelAllScheduledNotification nanoflow.

Now run the application & test it.
After running the application successfully send the notification and then click Cancel All Scheduled Notification, Wait for end of the current minute, You will not get any notification.
Cancelling a Specific Scheduled Notification :-
1.Go to your ACT_SendNotification nanoflow -> Double click on Schedule Notification activity -> Open Notificaton ID & Give the some ID value (‘testID’).

⭐⭐⭐⭐⭐ You can also perform actions with scheduled notifications. The process is the same — check out my Part-3 Actions in Native Mobile blog for details.
2. Create a new nanoflow ACT_CancelSpecificScheduledNotification.
3. Open your ACT_CancelSpecificScheduledNotification nanoflow -> Drag & Drop Cancel Scheduled Notification activity & Pass the exact notification ID here.

4. Now go to your Home_Native page -> Take a call nanoflow button(Cancel Specific Scheduled Notification) & Select previously created ACT_CancelSpecificScheduledNotification nanoflow.

Now run the application & test it.
After running the application successfully send the notification and then click Cancel Specific Scheduled Notification, Wait for end of the current minute, You will not get your specific notification.
Conclusion:
I hope this article has helped you understand How to Implement Scheduled Notification in Native Local Notifications in Mendix.
Thanks for reading this! See you in the next blog post.
