Hi,
I would like to know if there is a way to detect if the app is running in webpreview and/or in a device (android/iphone) and if is in debug mode or not.
Thanks
Hi,
I would like to know if there is a way to detect if the app is running in webpreview and/or in a device (android/iphone) and if is in debug mode or not.
Thanks
What do you mean by webpreview mode..? Are you referring to the phone frame that you see when testing..?
Yes, sorry if I was not clear.
I need a way to detect if the app is running inside a device or in the desktop browser.
This because I use the BarCode Scanner Service and when the app runs inside the browser, obviously it does not work.
So I want implement a workround to detect such situation and skip the service call and return a fake value so I can continue to test the app.
You can try to invoke the barcode scanner and if it returns an error (or undefined), you are running in a web browser.
Just for you know, I used the "echo" option on the barcode scan service when I test and debug my App inside the browser.
Obviously I switch off the echo mode when I deploy the app on the device