addUserToGroupAsync not working

Not applicable

I am able to create User but not able to add it in group.

I write userId and

groupid as "bd" group title name, i tried with uuid too.

client.addUserToGroupAsync(userId,groupid,
new ApiResponseCallback() {

@Override
public void onException(Exception ex) {
Log.i("AddUserToGroup", ex.getMessage());
}

@Override
public void onResponse(ApiResponse response) {

Editor ed = pref.edit();
ed.putBoolean("activity_newexecuted", true);
ed.commit();
finish();
						    
						}
					});
0 1 173
1 REPLY 1

Please try a curl command with the same values to rule out any other issues.

POST request to the following URL should help.

/{org_id}/{app_id}/groups/ {uuid|groupname}/users/{uuid|username}

If this persists, please let know what is the error you are when you use your SDK.