Jump to content

Unable to create mobile app - Pixi.js + Cordova


Recommended Posts

Hi there.

I'm can't create a mobile app (even a Hello World) with Pixi and Cordova.

When I run on browser via Cordova I do not have any problem, but on Android (emulated or real phone) I only have white or black rectangle (canvas).

Did someone succeed to create a mobile app with Pixi ? Witch techno works well with it ? Do you have some example code that works (I've search the web 2 days without finding a clue).

Thanks You


Link to comment
Share on other sites

I have managed to run a mobile game using cordova. See my example repo: https://github.com/eguneys/candy-mobile.


Here's my app style:


     #app {

  position: relative;
  width: 100vw;
  height: 100vh;
  margin: auto;



And put your initialization code in `onDeviceReady` callback.

Edited by eguneys
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.

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.


  • Recently Browsing   0 members

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