Add a constant to the Mx object, or to System.Session that indicates whether the client calling is Native or Web. - Mendix Forum

Add a constant to the Mx object, or to System.Session that indicates whether the client calling is Native or Web.

7

Dear all,

Sometimes you need to be able to determine if a calling client is using Native or Web technology. We have run into several use cases where we needed that information to be able to distinguish between Mobile Responsive, and Mobile Native, e.g. for security reasons.

I propose adding an enumeration attribute to both the mx object in the browser client, as well as System.Session. It could look like this:

Alternatively, split up the enum System.Devicetype values for Phone and Table to PhoneWeb + PhoneNative and TabletWeb + TabletNative.

I believe this would save us developers a lot of time when developing for both Web and Native, as we no longer have to pass parameters like this from a calling nanoflow into a number sub micro/nanoflows.

Best regards,

Wouter Penris

asked
0 answers