AppInstall
Automatically report the event upon the first opening after install.
The _event_name of install event is _appInstall.
AppStart
Automatically report the event when the Android app restarts (after being inactive for more than 30 seconds since the last exit) or when it is brought back to the foreground after being in the background for 30 seconds.
The _event_name of appstart is _appStart.
AppEnd
Automatically report the event when Android app is exited or sent to the background for more than 30 seconds.
The _event_name of append is _appEnd.
SolarEngine SDK supports developers to set custom properties for three preset events: appStart, appInstall, and appEnd:
Parameter | Description | Type | Required |
---|---|---|---|
eventType | Preset events, e.g. 0: AppInstall 1: AppStart 2: AppEnd 3: All | number | Yes |
properties | Custom preset event properties sent by the developer | object | No |
Sample Code
let customProperties = {
test1:"key1",
test2:2,
test3:[1,"2"]
}
solarengine.setPresetEventProperties(3,customProperties);
// After setPresetEvent API is called, _appInstall, _appStart and _appEnd will have all the sent properties.
Note:
3. Custom properties cannot start with an underscore "_". The SE SDK will abandon properties like this.