Actions are the heart of app interactivity. In this part of our series, discover how to create custom actions in Mendix Native apps to empower users with intuitive and dynamic features.
Dependencies :-
1.Go to your Home_Native page -> Drag & Drop Notifications widget

2. Double click on Notifications widget -> Click on Actions -> Create new action & give the your action name(show_page). In OnOpen select show a page & Create new blank native page (Notified_Page).


3. Open your Notified_Page & Add some static data or do what you want.

4. Go to Home_Native page again -> Open your action -> Select OnReceive & select call a nanoflow -> Create a new nanoflow(ACT_OnReceive).

5. Open your ACT_OnReceive nanoflow -> Drag & Drop Show message activity & write some message ‘Application is already open’.

6. Go to your ACT_SendNotification nanoflow -> Double click on Display Notification activity & Give the Exact action name which you created earlier(show_page).

Now run the application & test it.

After getting successfully notification just click on the notification you will be redirected on your action page (Notified_Page).

Conclusion:
I hope this article has helped you understand How to Implement Actions in Native Local Notifications in Mendix.
Thanks for reading this! See you in the next blog post.
