Android SDK message sync API

In class co.acoustic.mobile.push.sdk.plugin.inbox.InboxMessagesClient, the method showInbox will display the inbox, but will not perform a message sync.

For both inbox & inapp messages, you can perform a messages sync by using the co.acoustic.mobile.push.sdk.api.message.MessageSync syncMessages method. This method has an optional callback parameter that can be used to detect the sync procedure result.

Sample

MessageSync.syncMessages(getApplicationContext(),

new        OperationCallback<MessageSync.SyncReport>() {
     @Override
      public void onSuccess(MessageSync.SyncReport syncReport, OperationResult result) {
             // sync successful code here
      }

      @Override
      public void onFailure(final MessageSync.SyncReport syncReport, final OperationResult result) {
         // sync failure code here
     }
}});