Submitting Events
Note After April 30, 2018, Amazon Mobile Analytics features will be provided only by Amazon Pinpoint. If you're new to Mobile Analytics, use Amazon Pinpoint instead. If you're currently using Mobile Analytics, see Migrating from Amazon Mobile Analytics to Amazon Pinpoint. |
Each app can have up to 1,500 unique custom events, up to 40 attributes and metrics per custom event, and an infinite number of attribute or metrics values.
Submitting Events in iOS Apps
When you create event objects in an iOS app, you call the recordEvent
method on the event client object to record those events
in the device's local persistent storage. The client stores a maximum of 5 megabytes
of event data. By default, recorded events are submitted to Mobile Analytics at the
end of the current session. However you
can manually submit events at any time during a session. You can call the submitEvents
method on the event client object to submit
events manually. This removes data from the client file store.
For information about submitting events in iOS apps, see:
Submitting Events in Android Apps
When you create event objects in an Android app, you call the recordEvent
method on the event client object to record those events in the device's local
persistent storage. By default, recorded events are submitted to Mobile Analytics
at the end of the current session. However you
can manually submit events at any time during a session. The client will store
a maximum of 5
megabytes of event data. You can call the submitEvents
method on the
event client object to submit events manually. This removes data from the client
file store.
For information about submitting events in Android apps, see:
Submitting Events in JavaScript Apps
When you create event objects in a JavaScript app, you call the recordEvent
method on the manager object to record those events in the device's local persistent
storage. You can call the submitEvents
method on the manager object to
submit events manually . This removes data from the client file store. As long
as
there is an active session, session events are submitted to Mobile Analytics every
10 seconds.
For information about submitting events in JavaScript apps, see Mobile Analytics SDK for JavaScript.
Submitting Events in Unity or Xamarin Apps
When you create event objects in a Unity or Xamarin app, you call the
recordEvent
method on the manager object to record those events in
the device's local persistent storage. All events are submitted to Mobile Analytics
in a
background thread.
For information about submitting events in Unity or Xamarin apps, see: