Thanks @Chanel for your answer.
Actually, I don't create a new Item for exchange.
We have already Items sync with Clover and my device.
Here, There are all Item's Ids below we used to exchange the items by selecting any of these.
(H1MQKF89BWAJP, 069N54DGVEPAR, HYAMA7TMB82R8, 2WEEK6EVJJQT0, 5EYQKC79EBE3P, 379HJTASD7Y52, WF1C9ZZHVSPJA, 7CENFS1N5PKR2, X39JMSQB017E4, XP3H45WHXTVZW, BKVP8AJ70H9B2, KMY4QZG74MDDE, A50815GC3ZA80, DY730BB898WTC, RB7QN64AH5Z8M, S8ABFE3VZTWBW, NPFAKM9XKN5CE, 9HKTZ59M5A53P, JWQ8JCVEWHJMT, VPD1RJ8DRR02J)
and OrderConnector also provides the Item's Id when I go to exchange it.
And please also let me know how can I listen to Inventory updates?
Hi @Chanel , We analyzed the issue at my side and It seems to be happening due to data is not synched with/between clover and device as you said.
So could you please suggest me a way by which I could know when data is sync between Clover and my device so that I can exchange the Item at that time.
Please provide me some code snippet to listen the sync if possible.
Thanks in advance.
My apologies, but it looks like InventoryConnector doesn't have an onUpdateListener.
Instead, I suggest setting up Clover Webhooks and have an outside source listen for inventory updates. Once you've confirmed what items have been created/updated, you can then send a notification to your app to proceed with the exchange.
1 Person is following this question.