Hello,
I am trying to test out two of the recipes: Progressive rewards and referral codes.
Progressive Rewards: I am having issues with the cloud script. In the callback in my code, the result.FunctionResult returns null. I managed to get it working by changing the return from
return grantedItems;
to this
return {result: grantedItems};
With that, the cloud script returns a value I can work with but I am not sure if that is a bug or if I was doing something wrong.
Referral Codes: I again am having issues with the cloud script. I did the same edits as above to get the cloudscript to return a list of items instead of null. The problem I am having now is that the function "GrantReferralBonus" does not update the users inventory. The referral badge is not being added, so the user can redeem an unlimited amount of times. Am I missing something?