I need help resolving the error I get when I run a phonegap android app. I'm iframing a page with an embedded UStream feed. Everything else loads perfectly expects the ustream section and I get the error:
Sorry! The stream could not be played on this device.
Open the Content in Chrome Browser
Any assistance you can offer will be greatly appreciated.
Probably what is going on is that the UStream feed uses some HTML5 or other fancy API that is not yet in the WebView that Cordova/PhoneGap uses. You see, Phonegap uses a native WebView component to render the HTML content of your app. The problem is that this WebView is an oooold version of WebKit and doesn't support HTML5 and some other things. This is why the same web page will sometimes act differently depending on if you open it with Chrome browser, the standard Android browser, or with a Cordova WebView. This problem exists for all platforms as far as I know.
The slightly good news is that they just announced that Android 4.4 will have an updated WebView based on Chromium code, so hopefully your iframe will work in a 4.4 version of Cordova.
Related
I am a beginner Android developer.
I using the 'WebView' had tried to make a Android App.
However, the speed of the web is too slow.
So the Internet search results found GeckoView.
But homepage has been difficult for me to understand I do not know English well.
My questions:
Can I use GeckoView instead of the WebView? Is it simple?
Can I use a code library that just adds to the 'build.gradle' in Android Studio?
Is there another altenative?
Yes, you can use GeckoView also....
Android WebView is not intended for building browser application because, many advanced Web API'S are disabled.
And different phones might have different versions of WebView all of which your app has to support....
Geckoview is open source library that allows you to render web content on Android using the Gecko web engine...
I made simple application with webview, just check out you'll get some help
https://github.com/malikhimani21/Project-2
In some cases, a WebView is a good option for displaying trusted first-party access to your web pages from either a browser or your own app
check out this link
https://developer.android.com/guide/webapps
Gecko view is only experimental. You can't use for production
https://wiki.mozilla.org/Mobile/GeckoView
So your only choice would be a webview. If you are great in javascript, I would recommend you to use react-native. This is how facebook is made, and you can follow extensive documents mentioned here.
https://facebook.github.io/react-native/
I have customers wanting my website in app form, but the website is responsive. I've been looking for an open source project or code to just run the website in an app or open up their default browser to direct them to it. They just want the button.
Is there an open source project to make it easy to develop that code for iOS, Android, etc.
Are there any issues with running a website natively? Aka, same as cross-browser issues or..?
Thanks!
There is Apache-Cordova at this link. It is multi-platform and free/opensource.
In Android, you can use WebView.
Android WebView is a system component powered by Chrome that allows Android apps to display web content.
For more information about Android WebView, please visit the documentation
I have issue: in standard browser on some Android 4.2-4.4 devices my html page in some reasons (which I don't understand yet) looks broken as like as part of css just lost. But in Chrome app they are always looks good. So is there option to use Chrome app as main container for my webview application?
So is there option to use Chrome app as main container for my webview application?
WebView is using Chromium on Android 4.4+.
You cannot embed Chrome in your app, other than to the extent that WebView does.
IIRC, there are third-party libraries for embedding alternative Web rendering engines in an app. I seem to recall there being a standalone Chromium build, and Mozilla was working on allowing Gecko to be used as a library. I have not checked on the status of these in quite some time. You would also then be responsible for security updates for those Web rendering engines, and the libraries may substantially increase the size of your app.
We have developed webapplication on Webbased Video / audio communication, in the backend, it uses webrtc + html5,
Now we are trying to make it native, and approach is
-- Developed a WebView,
-- Launch an URL in the webview, so it will be more of native app . just a embededding webview as a shell inside the native app,
-- Now My question if i am able to launch Video Communicator successfully inside Browser then in the same device, should it launch in the Native application ( which is using WebView as a shell)
Well you could go native/hybrid, on Android for example, you could use Crosswalk/Angular/Ionic, I've tested a video chat app prototype with this method and it worked pretty well.
Crosswalk runs Google's Blink engine over Androids WebView, this is awesome for older android versions and phones that aren't super new because.
1. Gives the latest HTML features including WebRTC to about 85% of all android phones.
2. Performance is great, it's hard to tell between hybrid or native, the Crosswalk/Angular/Ionic stack is very smooth.
I've seen a couple iOS hybrid solutions as well out there, just haven't got around to trying it yet.
Just responded to a similar question on Stack Overflow:: Android WebView does not support WebRTC APIs at this point. Work is underway on Java an Objective-C bindings, though that may not be what you need.
My Web site is html 5 and if website open in firefox browser than it work very well. so is it possible to use firefox rendering engine or can i change default webkit or is there any third part library
No. A website cannot decide what rendering engine should be used to render it. The best way is to fix your website so that it renders correctly on all major browsers.