cocos-pnp icon indicating copy to clipboard operation
cocos-pnp copied to clipboard

How Can I Send Events On Platforms

Open xwbash opened this issue 1 year ago • 1 comments

How can I trigger events like starting a level, ending it, or opening the market? I have a ".adapterrc" file like the one below, but I don't know how to run events through TypeScript.

{
  "buildPlatform": "web-mobile",
  "orientation": "portrait",
  "enableSplash": true,
  "injectOptions": {
    "AppLovin": {
      "head": ""
    }
  }
}

xwbash avatar Apr 04 '24 20:04 xwbash

If you are only calling relevant methods within the business scenario, you just need to add them to the business code. If it requires platform audit verification, inject similar global methods in the relevant networks. image

ppgee avatar Apr 06 '24 08:04 ppgee