Moving GeoPoint to another category

Hello,

I want to use Business Logic to move GeoPoints between categories when certain conditions apply. This is the code I use:

// GeoPoint from "Default" category
GeoPoint geoPoint = iterator.next();

ArrayList<String> newCategory = new ArrayList<String>();
newCategory.add("Old");
geoPoint.setCategories(newCategory);
GeoPoint updatedGeoPoint = Backendless.Geo.savePoint( geoPoint );

What this code achieves is to add the GeoPoint to the “Old” category. What is doesn’t, however, is to remove it from its original (“Default”) category. What am I doing wrong?

Could you please check if “updatedGeoPoint” has the same objectId as the “geoPoint” object?

Yes, it does. At first I thought it created another GeoPoint, but they have the same objectId.

It does look like a bug. I will schedule an internal ticket to investigate this further.

Thanks!

Let me know if I can help with reproducing or something else.

Tried today - the issue has been fixed.