Objects Still In Localstore After Unpinallinbackground(list<...>, Deletecallback)
Solution 1:
Ok, so I solved it. From what I understood, what I was trying to do is not possible using the parse library.
First of all, deleteAllInBackground()
also unpins objects, so the unpinAllInBackground()
is not needed.
The problem is that I was pinning the objects using item.pin(MyApplication.ALL_ITEMS)
, thus the only way to unpin them is by passing the pin name using item.unpinInBackground(MyApplication.ALL_ITEMS)
. However, the batch version does not allow to pass as argument both a collection of items AND the pin name. Thus, it isn't possible to batch unpin items with a named pin.
I ended up unpinning the objects individually passing the pin name. The big complain I have is that doing item.unpinInBackground()
without the pin name does not throw an exception and thus I was not aware what the problem was.
Post a Comment for "Objects Still In Localstore After Unpinallinbackground(list<...>, Deletecallback)"