iOS PhoneGap app using WebGL

2019-04-08 05:51发布

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?

3条回答
别忘想泡老子
2楼-- · 2019-04-08 06:14

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

查看更多
Bombasti
3楼-- · 2019-04-08 06:14

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.

查看更多
Fickle 薄情
4楼-- · 2019-04-08 06:35

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/

查看更多
登录 后发表回答