Ich habe so etwas in meinem cordova appWebRTC in cordova webview
document.addEventListener("deviceready", onDeviceReady, false);
function onDeviceReady() {
window.location.href = 'https://mobile.xxx.com';
}
Jetzt brauche ich WebRTC auf dieser Website zu nutzen. Und funktioniert gut, wenn ich es im mobilen Browser (Chrome 54.0.2840.85) ausführen.
Allerdings, wenn ich die apk verwende, lädt das Webview nicht die webRTC-Funktionen wie Kamera oder Mikro.
Also, im mobilen Browser funktioniert es gut, in Webview wird die RTK nicht funktionieren.
Dies ist, was ich in config.xml habe versucht
<content src="index.html" />
<access origin="https://mobile.xxx.com" />
<allow-navigation href="https://mobile.xxx.com" />
<allow-intent href="https://mobile.xxx.com" />
<plugin name="cordova-plugin-network-information" version="1.3.0" source="npm" />
<plugin name="cordova-plugin-splashscreen" version="4.0.0" source="npm" />
<plugin name="cordova-plugin-whitelist" version="1.3.0" source="npm" />
<plugin name="cordova-plugin-dialogs" version="1.3.0" source="npm" />
<plugin name="cordova-plugin-statusbar" version="2.2.0" source="npm" />
<preference name="StatusBarOverlaysWebView" value="false" />
<preference name="phonegap-version" value="cli-6.3.0" />
<preference name="permissions" value="none"/>
<preference name="target-device" value="universal"/>
<preference name="fullscreen" value="true"/>
<preference name="show-splash-screen-spinner" value="true" />
<preference name="stay-in-webview" value="true" />
<preference name="orientation" value="portrait" />
<preference name="loadUrlTimeoutValue" value="700000" />
Bereits crosswalk aber gleiches Problem. Wie kann ich in cordova webview webrtc haben? Zur Klarstellung suche ich nur nach einer funktionalen Demo.
Welche Version von Crosswalk hast du benutzt? – johnborges
@johnborges bereits mit '' ' ' '' und mit '' '' ' –
user455318