question

ondrej avatar image
ondrej asked Dan commented

Invoking the tender sync manually

Hello,

after I delete a custom tender using the tender connector, the state (list of tenders) is not automatically synchronized (waiting does not help) between the Rest API and the device (sandbox emulator). I have posted this as a bug to the dev@clover.com, but meanwhile I see that the list of tenders will get synchronized after I go to the App Market application and I push the synchronization icon.

As a workaround, is there a way to call this synchronization from the code after I delete the custom tender? I mean something specific for tenders like:

Bundle extras = new Bundle();
extras.putBoolean(ContentResolver.SYNC_EXTRAS_MANUAL, true);
extras.putBoolean(ContentResolver.SYNC_EXTRAS_EXPEDITED, true);
context.getContentResolver().requestSync(CloverAccount.getAccount(context),OrderContract.AUTHORITY, extras);

Thank you, Ondrej

1 comment
10 |2000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Dan avatar image Dan commented ·

I have spent many hours trying to workaround this. My solution is to not delete tenders :D. Not a good one I know!

0 Likes 0 ·

0 Answers

Welcome to the
Clover Developer Community