Detect the widget is opening from mobile webbrowser or mobile Applicationmobile - javascript

I am having an HTML iframe which is hosted in both Android application in device and in browser.
User can access the iframe using mobile browser using crome or through Android application.
Is it possible to detect the difference using the html/js for Android app or Android web?
Thanks in advance.

Related

Widget does not display on IOS and Android

I have a web app that allows the user to embed quoting widget's on their own personal websites. The widget is built in our app and then we give them a piece of JS that they can embed wherever they please. Example embed code:
<script src="https://pinney.dataraptor.com/quoting/widget/widgets/18.js"></script>
The issue here is that on any mobile device (Tested on IOS and Android) the widget simply won't render. I've tested on my android phone in Chrome, Firefox and IE and interestingly enough it does show in the IE app but not the others.
To see for yourself fire up http://www.wholesaleinsurance.net on a mobile device.
After some exploring we found that our SSL was improperly configured, so the user had to visit and trust our sites content before the widgets would render elsewhere.

Suggest app installation from Android browser

I need to put an iframe suggesting the installation of an app (which is on Google Play) if my webpage is opened from an Android browser.
How can I do it?
Check if browser/system is android.
The following jQuery plugin may help: https://github.com/gabceb/jquery-browser-plugin
If it is android, set the iframe visible.
jQuery('iframe').show();

Is there a way to create a URL that will be opened in mobile browser and not in facebook native uiwebview

I'm trying to develop a web site (outside of Facebook) that all users will reach from within Facebook native apps.
currently when I publish a URL: http://mysite.com and a user clicks on it from within Facebook native app (galaxy 3+ and iphone 4+), the site is opened in the uiwebview of the application. I want it to be opened always in the default browser of the device.
is this possible? Thanks

How to open system browser on samsung smart tv with javascript sdk

I am experimenting with Sammsung Smart TV Javascript SDK and wonder that I cannot open Links in System browser.
I have found this Samsung Smart-TV SDK Internet Browser not available which is not what I want because it is not possible to navigate in this window via TV remote control.
Samsung doesn't give web browser in their SDK because the actual application also cannot open the web browser, so there is no point to bring web browser to SDK.
Developing the TV Apps is little different with mobile apps, in the mobile we can bring our ordinary website and put them on webview or html viewer because the navigation for click and else is same with desktop browser. but in TV apps you should utilize the remote control as the main input.

Launching Camera in Android Browser

I am developing a Web Application (not Android Native App) for mobile browser. How do you launch the Android Native camera using a web application on the android browser?
I am currently referring to the following camera tutorial. It works on desktop browser but not on Chrome mobile browsers because only Opera Mobile 12.0 supports getUserMedia.
http://webcache.googleusercontent.com/search?q=cache:http://davidwalsh.name/browser-camera
http://caniuse.com/stream
I guess it is possible because if I access Facebook through my android browser (Not Facebook App), I can launch the phone native camera. Any help with the syntax to launch the android phone camera using HTML and Javascript will be great?
You can create an intent:// URL that will trigger the native camera app. But that just launches this native app. There is no back channel that returns the taken picture to your web app.

Categories