Sending Event Data from the Mobile App
Here is how we upload Event Data.
KiiEvent instance by calling the
event method while specifying an "event type" (optional).
This event type can be any string such as "installed" or "level up". It will be used for filtering the event data in the case when you've set a filter in your metric definition.
In our example, we are setting "MyUser" as the event type.
Set arbitrary key-value pairs in the instance with the
In our example, we will set key-value pairs such as "gender", "city", "location", "children" and "age".
push method to cache the event data. It will be automatically uploaded to Kii Cloud in an optimal interval.
Check the following sample code: