We are trying to support teams under a single subscription. The logic for checking is if anyone has a subscription then we give everyone in the team access to the premium version of the app.
i.e.
await Promise.all(
[...memberIDs].map(async (memberID) => {
const res = await fetch(`${baseUrl}/${memberID}`, options);
const json = await res.json();
if (Object.keys(json.subscriber?.entitlements).length > 0) {
hasSubscription = true;
}
}),
).catch((e) => {
console.error('RevenueCat error: ', e);
});
But this isn’t working for some users mysteriously. I am wondering if revenuecat has a rate limit around how often a user can ping the server to check subscription status. I don’t see anything about this in the docs. Does anyone know if there is a better way to handle teams or if revenuecat does have a rate limit?