Preset events include _appInstall, _appStart, and _appEnd.
Event Name | Event Identifier | Description |
---|---|---|
App Install | _appInstall | Automatically reported every time the app is installed and opened for the first time. |
App Launch | _appStart | Automatically reported every time the app is opened, either from a closed state or transitioning from the background to the foreground after being inactive for more than 30 seconds. |
App Exit | _appEnd | Automatically reported every time the app is closed or when it remains inactive in the background for more than 30 seconds. |
The SolarEngine SDK supports developers to set custom properties for three preset events: app startup, installation, and exit.
Parameter Name | Parameter Meaning | Parameter Type | Mandatory |
---|---|---|---|
eventType | Preset events, e.g. 0: AppInstall 1: AppStart 2: AppEnd 3: All | number | Yes |
properties | Custom properties | object | No |
Call example:
let customProperties = {
test1:"key1",
test2:2,
test3:[1,"2"]
}
solarengine.setPresetEventProperties(3,customProperties);
// After calling setPresetEvent API, _appInstall, _appStart and _appEnd will all bring the custom properties.
Note: