Detect Cordova / PhoneGap / Ionic frameworks on a mobile device.
Deliberately does not rely on checking file:// URLs (as this fails PhoneGap in the Ripple emulator) nor
Cordova onDeviceReady, which would normally wait for a callback.
Returns boolean
isMobileCordova
Const isNative
isNative(): boolean
Detect if device is running in native environment as opposite to browser platform
Detect Cordova / PhoneGap / Ionic frameworks on a mobile device.
Deliberately does not rely on checking
file://
URLs (as this fails PhoneGap in the Ripple emulator) nor CordovaonDeviceReady
, which would normally wait for a callback.