Jump to content

PhoneGap babylonjs whitescreen on android


wabsol
 Share

Recommended Posts

Hi, I am wabsol.

I am building a vr application for use on cardboard.

Everything works fine when using the phonegap server(windows)/client(android) app.

But i noticed when i wanted to export it for android my phone was not compatible because it is android 6.0.1.

I tried if i could update my phone but it said it was running the latest update for my device (samsung galaxy s6).

I also tried editing the config.xml file for several versions of phongap/android.

But i allways get a white screen when using the app without the phonegap server/client apps.

 

My project in browser (youtube video):

 

Link to comment
Share on other sites

not sure about your problem, but I had problems with Cordova and webgl - webgl not works there by default. The solution was using this plugin https://crosswalk-project.org/ It is custom webview component that contains all cool features of modern browsers. Check out that your environment supports webgl http://stackoverflow.com/questions/11871077/proper-way-to-detect-webgl-support

Link to comment
Share on other sites

25 minutes ago, c75 said:

not sure about your problem, but I had problems with Cordova and webgl - webgl not works there by default. The solution was using this plugin https://crosswalk-project.org/ It is custom webview component that contains all cool features of modern browsers. Check out that your environment supports webgl http://stackoverflow.com/questions/11871077/proper-way-to-detect-webgl-support

thank you i will try that :)

Link to comment
Share on other sites

15 hours ago, bruno_ said:

Try to connect your phone to the pc and debug it with adb

adb logcat -s chromium

It may help if some errors show up.

or you can use vorlon.js to see console log on your mobile device - it's much easier and faster then use adb if you just want see console messages and errors from remote client

Link to comment
Share on other sites

3 minutes ago, c75 said:

or you can use vorlon.js to see console log on your mobile device - it's much easier and faster then use adb if you just want see console messages and errors from remote client

thanks again i just dowloaded adb so i will try adb first because i think it may be the version of phonegap and babylonjs not working togheter. if that is not the problem it might be phonegap related.

ps.i am using phonegap because the intel xdk does not support cordova anymore i think (its focus changed to internet of things applications now)

Link to comment
Share on other sites

58 minutes ago, JCPalmer said:

Yeah, I saw the xdk direction change to.  CocoonJS handles the crosswalk for you.  Also, they have a tester app just like xdk.  You can see console messages right from there.

I have not tried the cloud build, but for dev you can use your own http server with the tester app.

thanks for the info i will take a look at this option.

Link to comment
Share on other sites

I will post here after trying the options you guys suggested :) (i am pretty new to forums and its nice to see how fast i am getting responses. Thanks) 

i want to say that i am autistic and the amount of appointments i have are high(both for my health and the health of friends in need)( so sorry if it takes a while to respond)

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...