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):
Android
requires to havestore.refresh()
afterstore.order()
. On the other hand,iOS
will 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
/Xcode
as per j3k0/cordova-plugin-purchase#1241 (comment). - "x" button in main menu:
iOS
should not have it, whereasAndroid
should have.