Wednesday, June 8, 2022
HomeGame DevelopmentNative web-mobile sport in WebView - Cocos Creator

Native web-mobile sport in WebView – Cocos Creator


Hey everybody! The query arose, is it potential to run a sport created as a web-mobile domestically on the cellphone?
I got here up with an attention-grabbing model of the management for my software and the best option to join them is to make use of a WebView. Thanks!


I can ask engineering to take a look.

You possibly can native web-mobile sport in webview, you want to pay attention to the constraints of the webview, discuss with :WebView Part Reference · Cocos Creator

Hey, possibly I didn’t amplify very precisely. The query isn’t within the meeting of the WebView part (which is obtainable within the subsequent engine), however within the native WebView (iOS and Android). However what can be utilized, I already understood, however is it potential to make use of an online cellular sport in a local WebView cellphone with out changing it on a distant server?

You should utilize your cellphone as a server to publish internet mobie sport, then use native WebView to load it.

Hey, I’ve created an app that makes use of a local WebView. (Unity3d+webview plugin)
and after I open cocos sport from the native path

on cellular. It caught at cocos splash display and It reveals the error (have a look at the log from vConsole)

Does anybody have any resolution for this?
Thanks.

Which model of creator are you utilizing? you may attempt to use creator3.5.1 to construct a web-mobile process.

I attempt to open the challenge from file system direct, and it reveals the identical error as you supply. possibly you should publish the challenge to a server.

I’ve already tried v3.5.1 and I get the identical outcome

Is it potential to run my sport from native storage through native android webview?

No, you should publish it.



1 Like

RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

- Advertisment -
Google search engine

Most Popular

Recent Comments