I made a game in Phaser and would like to export it to Android. What is the best way to do this? What tools should I use?
I think it will be specific to your game, there probably isnāt a ābestā and frankly there are so many options itās hard to say. In terms of ease of use, Cordova is pretty popular and there are tutorials available, Emanuel Feranato offers a tutorial on using Cordova to create 2048 for android using Phaser 3.22.0. Off the top of my head I also know there are some examples/tuts using Ionic and React on phaser.io as well. In terms of ābestā I would think ones that are most popular would be best simply because they will have continued support, which is at least for me, the greatest concern when choosing a framework.
Agree. I donāt think there is any ābestā way. You can use Capacitor. I donāt have any experience with that but itās one of the alternative out there.
+1 for Capacitor
It is like a modernized Cordova and still has ability to use cordovaās plugins. But on the other hand it has bunch of basic native capabilities build in already, so you donāt need plugins at the early stage of development at all. Also it uses Android Studio to build and debug project (as I know Cordova used its own build scripts) - so it is more transparent and you as a dev simply see what is going on under the hood during the process.
If you use Cordova or Capacitor to turn your app native, you go with a slow webview.
If you use a PWA, you get Chrome as your engine. And with Bubblewrap you can still publish on any store.
So donāt go native. Use PWA (PWA Builder (Bubblewrap), or Capacitor PWA, which uses Bubblewrap (I think).
So how you put in the app store then?
Itās still Google and Apple monopoly
Switching from Cordova to Capacitorā¦
Bubblewrap turns it into a APK.