In Genexus, how to know if is compiling for Android or IOS in Smart Device?
Example:
A procedure:
If platform = ‘IOS’
&Variavel = 1
Else if platform = ‘ANDROID’
&VARIAVEL = 2
endif
In Genexus, how to know if is compiling for Android or IOS in Smart Device?
Example:
A procedure:
If platform = ‘IOS’
&Variavel = 1
Else if platform = ‘ANDROID’
&VARIAVEL = 2
endif
There is no way to know at complie time, but you can check in runtime.
You can use the
DeviceType
property inClientInformation
See more info in the official documentation: ClientInformation external object