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.

2 comments on"Configuring events in Cordova"

  1. event success function called but where we need to see the data…. please advice

    • JoanGriffin June 22, 2017

      The topic has been updated with the following information in response to your comment:
      To verify the events that were successfully sent to the server, see the callback for the event success function. The sample app also shows the events.

Join The Discussion

Your email address will not be published. Required fields are marked *