Getting names for request and invites to a group
-
When we grab all the group data, we can get a list of any request or invites that are sent for the group. The only downside is there aren't any names included so when we show a list of it to the user, we would have to fetch the names on their own.
This particular app we are working on could have several request and invites going on. We thought about using the Attributes section, but there didn't seem to be a way to pass in info to that section when using the join group call.
We figure there may be a way to do this through cloud code, but we're just not certain how to do that coding.
Reaching out if anybody has a good solution they came up with on this part?
Thanks for any assistance.
-
As an interim solution, you can add a cloud code script or a post-hook to retrieve the missing data, using the profileIds found in the request.
https://getbraincloud.com/apidocs/apiref/#capi-friend-getsummarydataforprofileid
... "pendingMembers": { "382eb04f-f80c-4bfc-9a12-fca508cad476": { // <- These profile ids "role": "MEMBER", "attributes": {}, "pendingReason": "ASKED_TO_JOIN" } } ...
-
As an interim solution, you can add a cloud code script or a post-hook to retrieve the missing data, using the profileIds found in the request.
https://getbraincloud.com/apidocs/apiref/#capi-friend-getsummarydataforprofileid
... "pendingMembers": { "382eb04f-f80c-4bfc-9a12-fca508cad476": { // <- These profile ids "role": "MEMBER", "attributes": {}, "pendingReason": "ASKED_TO_JOIN" } } ...
-