Explore how you can add powerful dynamic actions through native push notifications, transforming your Mendix app into a seamless and interactive experience for users.
Dependencies: -
https://flowkoder.com/mendix-native-series-31-push-notifications
Open your NativePushNotification app in MX Studio Pro,
Go to Home_Native page & Open NativeHomepage_Snippet.


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).


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

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

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


Go to your IVK_SendMessagesToDevices microflow -> Double click on Send message Java Action & In the context object select $MessageData.

Now save this and publish the application first & then make your APK.
After installing your APK successfully in your physical device, Open your mendix publish environment app -> Go to Administration page,
Then go to devices tab, You will see one popup menu if you click on this you will see there will be one button Send Message. Sometimes this pop up menu does not work i am not sure why if this is not working just take another button and call that microflow(IVK open send message form) & publish again.

Now click on that button & send the message what you want & in the action name type the exact same name which you gave in the Notifications widget(show_page).


After receiving the notification, click on it to trigger a dynamic action.

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