How to determine if user is running the hybrid app or the web app

0
For mobile devices the variable $currentDeviceType cannot distinguish between hybrid and web app. Our applications have specific pages for hybrid users and specific pages for web app users. Is there a way to determine if the user is running the hybrid app or the web app?
asked
2 answers
4

The way we currently detect whether it is a hybrid application or not is use the following javascript to check whether cordova has been loaded correctly.

if(typeof cordova != 'undefined'){

So if cordova is loaded then the following if statement will be executed.

So you could adjust the current mobile widget that was suggested and add this piece of code to detect if cordova is defined.

I hope this helps?

Regards Simon

answered
0

Not tested, but this app might be what you are looking for: https://appstore.home.mendix.com/link/app/437//MobileBrowserDetection

Regards,

Ronald

answered