Get device ID from Microflow

0
I’m doing a native application and I would like to to retrieve the device ID from a microflow called in the After startup event. Is there any way to do it directly in Mendix Studio pro or do I need to create custom Java code to retrieve that info?
asked
1 answers
2

Hi Ignacio,

You seem to be mixing up some terms here. When you are running a native app, you are running it on a mobile device, such as a smartphone. To get the deviceID of the smartphone you can use a Javascript action from the NativeMobileResources module called ‘GetDeviceInfo’. This will return the  deviceID for you.

An after startup event is a microflow that runs at the startup of the Mendix runtime on the server and not on the mobile device. In fact, you can't run Java code in a React Native app at all.

answered