Difference between revisions of "PHONEGAPPLATFORM()"
From Lianjapedia
Yvonne.milne (Talk | contribs) |
Yvonne.milne (Talk | contribs) |
||
(One intermediate revision by the same user not shown) | |||
Line 10: | Line 10: | ||
==Description== | ==Description== | ||
The PHONEGAPPLATFORM() function returns the platform - 'android', 'ios' or 'winphone' - if the current client is a mobile device, otherwise an empty string. | The PHONEGAPPLATFORM() function returns the platform - 'android', 'ios' or 'winphone' - if the current client is a mobile device, otherwise an empty string. | ||
+ | |||
+ | Note: PhoneGap Build of Lianja Apps was deprecated in Lianja v5.4. Instead, the Build Workspace provides the ability to configure Apps as [[#Progressive Web Apps|Progressive Web Apps (PWA)]]. | ||
==Example== | ==Example== | ||
Line 30: | Line 32: | ||
[[Category:Lianja VFP Extensions]] | [[Category:Lianja VFP Extensions]] | ||
[[Category:VFP Function Extensions]] | [[Category:VFP Function Extensions]] | ||
− | |||
[[Category:Lianja v2.0]] | [[Category:Lianja v2.0]] | ||
[[Category:PhoneGap Apps]] | [[Category:PhoneGap Apps]] |
Latest revision as of 10:44, 9 December 2020
Contents
Purpose
Function which can be used in .rsp pages and/or server-side procedures to determine the platform if the current client is a mobile device
Syntax
PHONEGAPPLATFORM()
See Also
ISPHONEGAP(), ISSERVER(), PHONEGAPDEVICE(), PHONEGAPVERSION()
Description
The PHONEGAPPLATFORM() function returns the platform - 'android', 'ios' or 'winphone' - if the current client is a mobile device, otherwise an empty string.
Note: PhoneGap Build of Lianja Apps was deprecated in Lianja v5.4. Instead, the Build Workspace provides the ability to configure Apps as Progressive Web Apps (PWA).
Example
do case case phoneGapPlatform() = 'android' // called from Android mobile client case phoneGapPlatform() = 'ios' // called from iOS mobile client case phoneGapPlatform() = 'winphone' // called from Windows Phone mobile client otherwise // not called from mobile client endcase