You can send events to the Mobile App Messaging servers by using the MCEPlugin.queueAddEvent function.
Note: The addEvent API is deprecated. Use the queueAddEvent API as a replacement.
You can provide two callback methods for success and failure of the event sending. If you want to know about the eventual success or failure of the network request, you must also register a callback function to the MCEPlugin.setEventQueueCallbacks method. This method fires when a queued event is sent to the server or if it fails to send. The queueAddEvent method continues to try to send the event to the server.
If you want to see events that were sent to the server, check the callback for the event success function. The sample app also shows the events.
Go Back to the Mobile App Messaging home page.