Filippo oretti
Filippo oretti

Reputation: 49817

iOS PhoneGap app using WebGL

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?

Upvotes: 6

Views: 10296

Answers (3)

jcesarmobile
jcesarmobile

Reputation: 53301

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

Upvotes: 7

dk123
dk123

Reputation: 19690

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/

Upvotes: 0

ChenSmile
ChenSmile

Reputation: 3441

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.

Upvotes: 0

Related Questions