Last Modified: 2022-08-27

Steps

Project folders


Solar2D simulator

menu > show sand box folder

you need to clean the following folders if you want to recover the initial state. * Application Support * Documents * TemporaryFiles

For device build, you must set the valid product IDs from apple, google or amazon. For IAP Debug Mode, set the same name value to each filed.

Debug mode

IAP Badger https://github.com/happymongoose/iap_badger

When you test it with debug as true for components/bookstore/model.lua , you need to set the book names as its dummies for the productNames.

Don’t use the official product names from apple, google or amazon. With official IDs, debug mode fails to return a book name and IAP not work correctly.

  productNames = {apple = "bookFree", google = "bookFree", amazon = "bookFree"},

build.settings

iOS

if you use http server instead of https, please set your domain in build.settings

NSExceptionDomains

https://docs.coronalabs.com/guide/hardware/appleATS/index.html

Android