You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
On ionic/cordova the function loadRewards() returns an integer (number of credits in default bucket). So I can not get info on the credit in custom buckets.
Branch.loadRewards().then(function (rewards) {
console.log("rew", rewards);
// will return the balance of the current user's credits
$scope.credits = rewards['beer'];
}).catch(function (err) {
console.error(err);
});
According to documentation it should return an array or object with the different buckets and their credit status.
@chris08002 ,
I think there's a misunderstanding w/ what the Branch.IO documentation tells about the loadRewards return, it doesn't return an object/array but only an integer(Typo in the documentation I guess?).
However, I've modified loadRewards to accept a string parameter so that you can specify a bucket to load a reward.
Hopefully PR #180 caters your problem.
Let me know if this works for you. 👌
On ionic/cordova the function loadRewards() returns an integer (number of credits in default bucket). So I can not get info on the credit in custom buckets.
According to documentation it should return an array or object with the different buckets and their credit status.
This is refering to my post in stackoverflow:
http://stackoverflow.com/questions/38654869/branch-io-with-cordova-branch-loadrewards-no-results
And also to my branch.io support request.
The text was updated successfully, but these errors were encountered: