I am trying to add some platform specific code to resize my game if on mobile. My problem is cordova.platformId is returning as “browser” on my phone after running “cordova run android”.
I created a new Cordova App using the command line. I added the Android platform and got an APK running on my device with “cordova run android”. I made a text file in my game to print the output of cordova.platformId. It outputs “browser”.