Any way of finding out the device type in a nanoflow?

0
Hi All,   I was just wondering if anyone knows a way to get the device type in a nanoflow? Similar to how in a microflow you can use $currentDeviceType.   I’ve looked at “Get platform” but that returns either hybrid, native or web which is not what I need.   Kind regards Nathan
asked
2 answers
4

What Mike is saying, but it has already also been created:

For example in this module you have these kind of javascript checks.
https://marketplace.mendix.com/link/component/119777 

answered
0

You could build a Javascript action to detect this.  Here is an article to get started with that: https://medium.com/simplejs/detect-the-users-device-type-with-a-simple-javascript-check-4fc656b735e1

Once you create a Javascript action, you can call it in a Nanoflow.  Here is the Mendix documentation about how to create a Javascript Action:  https://docs.mendix.com/refguide/javascript-actions/

answered