iOS PhoneGap app using WebGL - ios

Which is the WebView of a PhoneGap app, is the Safari mobile or desktop one?
Is it possible to use WebGL in PhoneGap apps? If not which they work around to use them being able to submit the app to the Apple Store and Android Store
Will I be able to submit to Apple Store a PhoneGap app that uses WebGL?

UPDATE:
iOS 8 brought WebGL support on the UIWebView and WKWebView, so if you don't want to support previous versions you can use it without CocoonJS
See more details on ludei's website
OLD:
If you want to create HTML5 apps with WebGL for iOS and android, try CocoonJS
Right now it's the only way to create WebGL apps that run on iOS and android

I just figured out your issues in two points.They are-
phonegap build app links won't open in safari. For More details Please check HERE
Neither the iOS nor Android browsers support WebGL so it is pretty much a non-starter in PhoneGap.
Apple are clearly working towards supporting WebGL in a more general sense, as can be seen in their support for it in iAds.
It’s possible to take advantage of WebGL using standard embedded web views ( using private APIs).
check HERE too fro browser support.

I personally recommend Ejecta for it being open source:
https://github.com/phoboslab/Ejecta
The Android port doesn't seem widely active, but the main ios port seems well maintained, supporting WebGl.
The latest Android versions support webGL directly - if using older Android versions, Crosswalk can also be used along with phonegap to utilize webgl support.
https://crosswalk-project.org/

Related

WebKit + WebRTC without Safari 11/Safari Preview and High Sierra

I'm really intrigued with WebRTC and want to start building web based technologies that have access to hardware and other aspects of what a native application might have. My question is, how might I implement WebRTC into WebKit, without using High Sierra for macOS or Safari 11/Safari Preview? This goes beyond using Chrome or Firefox to test some WebRTC components. I want to be able to implement an instance of WebKit, maybe using webview in a macOS app, and include WebRTC.
Maybe even, a framework that I could use in Xcode and Swift for a macOS app or iOS app? That would be even more awesome!
What I've looked at so far:
https://webkit.org/blog/7763/a-closer-look-into-webrtc/
http://www.webrtcinwebkit.org
https://www.openwebrtc.org
https://webrtc.github.io/samples/
https://www.openwebrtc.org/bowser/
Also found this to be interesting:
http://thejackalofjavascript.com/node-webkit-webrtc-and-angularjs-a-video-chat-client/

Why is QWebEngineView not ready for mobie apps?

My apps will use some widgets to show web pages. But QTextBrowser just support HTML 4.1, and QtWebView just support QML, and QWebEngineView just spoport Linux/Unix/MacOSX/Windows. Why does QWebEngineView not support Android and IOS? It is the reason of Chromium donot support Android and IOS ?
Current mobie apps often use WebView to show web pages, so we can't wait for QWebEngineView. What is the official idea and plan?
It is the reason of Chromium donot support Android and IOS ?
iOS
Apple does not allow Chromium on iOS.
See rule #2.5.6 at https://developer.apple.com/app-store/review/guidelines/#software-requirements -- Apps that browse the web must use the appropriate WebKit framework and WebKit Javascript.
Android
It is technically possible to add support for Qt WebEngine on Android, but this support does not exist at the moment.
See http://lists.qt-project.org/pipermail/development/2013-September/013169.html for the reasons.
This is my interpretation:
It requires a lot of work. The Qt Company's resources are being spent in other areas.
An Android app that uses QWebEngineView will need to include the Qt WebEngine library, which is very large (~30 MB?). This is not desirable.

webRTC-enabled browser for iOS?

Preface: there are questions (some good, some bad) already in existance on StackOverflow about webRTC support on various browsers and platforms, including iOS. However I couldn't find anything definitive that was more recent than ~2012, and this is a rapidly-changing field.
I'm working on a browser-based webapp that uses webRTC for minimal-latency peer-to-peer data transfer (not for audio/video, unlike most applications it would seem - all I need is DataChannel).
I hit a snag when I started testing the data-transfer part of the project and discovered that iOS devices still don't natively support this in their built-in browsers (despite some recent rumors).
Bowser is a free open-source browser App for iOS that purports to support webRTC on iOS. The problem is that when I try to open the app, it simply crashes and closes. I've tested this on an iPhone 5 and 5s. Googling has failed to turn up alternatives - even Chrome for iOS doesn't currently support webRTC it seems.
My questions:
1) Are there alternative browsers (even iOS-version restricted) that are currently supporting webRTC, or is there anything promising coming down the pipeline?
2) Does Bowser actually work (webRTC) on iOS devices where it doesn't crash immediately upon launch?
3) What strategies have other people used to work around this limitation?
As of iOS 11, WebRTC is now supported in Safari: https://developer.apple.com/library/archive/releasenotes/General/WhatsNewInSafari/Articles/Safari_11_0.html#//apple_ref/doc/uid/TP40014305-CH13-SW1
Check out crosswalk project ( https://crosswalk-project.org )
This Provides runtime of Chromium engine for native support in older devices.
1) Are there alternative browsers (even iOS-version restricted) that are currently supporting webRTC, or is there anything promising coming down the pipeline?
Answer:
There is a Browser called Bowser that supports webRTC.
2) Does Bowser actually work (webRTC) on iOS devices where it doesn't crash immediately upon launch?
Answer:
It's not crashing as of now.But I couldn't successfully test with anything so far.I have raised an issue about it
3) What strategies have other people used to work around this limitation?
Answer:
Apple is yet to support WebRTC in Webkit so as of now the only way would be develop a native or Hybrid app that would support the unsupported WebRTC APIs.
You can develop a hybrid app powered by OpenWebRTC or cordova-plugin-iosrtc

Is it possible to use Phonegap to bring a PlayN game to iOS?

PlayN looks like a pretty impressive way to develop Html5 games. I'm wondering if if there are any efforts to make the html/javascript output compatible with Phonegap with the end result being an iOS executable ?
PlayN works just fine with PhoneGap, and in Mobile Safari. Performance is not awesome because in PhoneGap, you cannot use JIT compiled JavaScript. Also, prior to iOS5, Canvas was not hardware accelerated. PlayN has a DOM+CSS backend for HTML5 that achieves decent performance on iOS4 and earlier, but it is being phased out in favor of a Canvas-only HTML5 backend. So that's added complexity if you want to target iOS via HTML5 + PhoneGap.
PlayN will eventually support iOS natively, and that will be a vastly preferable way to deploy to iOS because it will be more correct, higher performance, and integrate more easily with existing iOS services.

Will Phonegap current version work on BlackBerry OS version 5?

I am new to mobile development and I was wondering if the applications I develop using phonegap will work correctly on Blackberry OS 5 since they don't support it yet. I won't need any fancy features in my app and wanted to use phonegap to develop for Android, IPhone and Blackberry. But of course I am having problems with the different versions of Blackberry OS just like everyone else.
Thanx.
I had a chance to test this once. I have put my Phonegap application on 5.0 and observed how it behaves. Application has launched properly. But i Observed following issues.
HTML5 is supported but localStorage and sessionStorage is not supported.You need to find an alternative.
HTML Page transition is too slow. End used will certainly not accept the performance.
Few jQueryMobile API's don't work.
You cannot be sure that page will be viewed same as you see in 6.0+. Few elements get distorted.
You need to test each and every UI element and see if it is working proper.For example datepicker displays date on right side of the page instead of left
Few PhoneGap API's don't work or they crash.For example API to launch camera crashes.
After observing above issues i felt that even if phonegap is supported in 5.0 it doesn't make big sense.
Yes, but to run on OS version 4.x you have to target the PhoneGap BlackBerry application, while to run on OS version 5 or 6 you need to target BlackBerry Widgets / WebWorks -- the same application may work on both if you use compatible features, but you'll need two different builds, as though they were two different kinds of phone.
Now the support for earlier versions of BlackBerry has been withdrawn from Cordova 3.0 onwards, which in turn supports BlackBerry 10 only. Refer the following link for more details.
PhoneGap - BlackBerry Support
Thanks,
prodeveloper

Resources