Is https needed for getUserMedia when using a Webview on iOS? - javascript

Browsers enforce https when using getUserMedia. I am working on a web app made to be used on a local network rather than actually connecting to the internet so going for a typical TLS cert won't really work. If I use a webview in an iOS app, would getUserMedia work when pointing the view at an IP address serving a website?

Related

Problem with streaming audio in mobile with Android 9 version?

I was making an app in react-native where I had to stream audio from a http (non secure) url. The app works well in debug mode but when I tried using the release version the audio didn't play in phones having Android 9 and above. I am using this Library.
I can't create the SSL for the link. Also I have tried with some SSL secure links (https) the library works fine with Secure Links, but due to certain restrictions I have to use the http link only.
Note: The audio streams well in Android 8 and below. I have tried using a WebView to play the audio didn't work.
Update:
1: Get yourself a https link for streaming your audio.
( If you can't do that )
2: Host up a proxy audio streaming server with your non secure http link
Keep coding 👍

How to simulate HTTPS on a native application?

I am using Instascan library which allows me to access camera on both desktop and mobile devices. However, when I convert the website to a native Android or Iphone app I cannot access the camera. The documentation of Instascan library says
Chrome requires HTTPS when using the WebRTC API. Any pages using this
library should be served over HTTPS
Is there a way to trick a native application to think that it is being served over HTTPS?

Can intel xdk html5 based app work only when internet connection is enabled

I want my app not to be accessible without internet connection. I am developing app using Intel XDK by using HTML5 language . Now when I build my app that works without internet connection but I want my app to work only when internet connection is enabled.
instead of using the application.appcache to allow content to be stored and used from the cache, you can specify that all files (or perhaps just critical files that allow the app to start?) are listed under NETWORK.
"To ensure that the application requests the file from the server even if the cached resource is cached in the application cache, you can place that file in the NETWORK: section."
http://apress.jensimmons.com/v5/pro-html5-programming/ch12.html
or check for connectivity using navigator.onLine or other methods - see http://www.html5rocks.com/en/mobile/workingoffthegrid/
List a file under NETWORK: that is used by the app each time and it will have to go to the internet to retrieve

Twilio Client Python not Working in IOS Browser

I have created a simple twilio client application to make phone calls from Web Browser to phones. I used a sample Flask app to generate a secure Capability Token and used twilio.min.js library to handle calls from my HTML.
The functionality works fine in Computer Browsers and Android Phone Browsers, but fails in IOS browsers(checked both in Safari and Chrome). In android the page asks for permission to use mic and headphone but in IOS it doesnot even as for that. Is there anything that I am missing here? It would be really helpful if someone can throw some light into this.
The doc I referred to was : Twilio Hello Monkey Client
Twilio developer evangelist here.
Twilio Client uses WebRTC and falls back to Flash in order to make web browsers into phones. Unfortunately Safari on iOS supports neither WebRTC nor Flash so Twilio Client cannot work within any browser on iOS.
It is possible to build an iOS application to use Twilio Client just not a web application.

Android to BB10 Porting Phone Gap Application (Same Origin Policy Issue)

I'm trying to port phonegap Android app to bb10, The issue is android web-view doesn't follow Same Origin Policy so app works fine on Android. But seems BB10 web view follows Same Origin Policy. so application doesn't work properly in BB10 devices. Is there any way to disable this SOP in BB10 within Android code or java script?
EDIT:
Small Clarification on this:
Phone gap application opens a HTML/Java Script file inside a web view. So now I'm going to port Phone gap Android app to BB10. Standard web browsers follow "Same Origin Policy" But seems android web view doesn't follow the policy so thats why we are able to call ajax request within web view.
but bb10 web view behaviour is different it seems.
so is there any one who tried to port Android Phonegap application to BB10 successfully? And how to cater SOP in BB10?

Categories

Resources