KevinCousin Posted August 25, 2020 Share Posted August 25, 2020 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 Kevin Quote Link to comment Share on other sites More sharing options...
eguneys Posted August 28, 2020 Share Posted August 28, 2020 (edited) 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: <style> #app { position: relative; width: 100vw; height: 100vh; margin: auto; } </style> And put your initialization code in `onDeviceReady` callback. Edited August 28, 2020 by eguneys Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.