Determine software version in nanoflow logic in native apps

0
Hi all,   Is there a way to determine which software version a user has installed on their phone via a nanoflow action?   We want to show a notification to the user if there’s a new version of the software available for download.   Thanks in advance!
asked
2 answers
0

Hello Jan-Willen

 

“We want to show a notification to the user if there’s a new version of the software available for download.”

 

You can try use Push Notifications Module for this purpose:

Mendix Marketplace - Push Notifications Connector

 

The Push Notification can be received with the app in the background or in the foreground.

In the later case, you can define a OnReceive & OnOpen nanoflows with a message saying that a new app release is available.

 

Then, you must have a logic in your mx backend to send the notifications to the users. There’s an admin UI to send push tests.

 

See also:

https://docs.mendix.com/refguide/mobile/using-mobile-capabilities/push-notifications/

 

Works fine on Android and IOS.

 

Hope this helps.

 

 

answered
0

And answering your first question, you can use the activity Get device info (NativeMobileResources module) and use the Version attribute, as shown in the image below

 

 

This will return the version of the running app, in my case, using the Developer App laucher. This info is equal to the info we get by checking the app properties

 

 

Good luck!

answered