You may want to change “setRelation” to “addRelation” since your “users” column is a to-many relation. and I don’t know about how Android works but on iOS, it’s ok to set the column name as just “users” and instead of passing the children objects, you can try just passing an array of objectIds. Try these options and see if any of those changes the behavior.
Hi Jonathan, I’ve tried changing it to “addRelation” and nothing seems to change, and about the array thing, isn’t that what I’m doing with “ArrayList children = new ArrayList<>();” ??
Still not working thanks so much for the help tho… I really thought that was the problem now, because I’d actually seen that documentation and just forgot to change my code.
I’ve just tried running your code in my app and everything worked just fine.
Make sure you are using 5.2.4 version of Android SDK. For a clean test try replacing values in HashMap keys with actual values like followed:
Parent objectId - id of the “Group” table object
Child objectId - id of a user in Users table
Relation column should be set in “Groups” to Users. If that will work - debug your project and find out where things are going wrong.
Anyways please come back with results