Navigate to the project repo directory.
Run:
npm install
assuming node installed in PC.
Run:
npm run dev
This will run a server so game automatically opens in your defualt browser with browser-sync properties. It will also start a watch process, so you can change the source and the process will recompile and refresh the browser automatically.
- In App Purchases (IAP):
Androidrequires to havestore.refresh()afterstore.order(). On the other hand,iOSwill work only in the opposite order with thestore.refresh()being placed beforestore.register(). It can be easily debugged what the server returns usingJSON.stringify(store.products)on a real device withAndroid Studio/Xcodeas per j3k0/cordova-plugin-purchase#1241 (comment). - "x" button in main menu:
iOSshould not have it, whereasAndroidshould have.