Craig-Ronald / capacitor-subscriptions

MIT License
14 stars 5 forks source link

[bug] CurrentEntitlementsResponseCode 404 instead of 1 when message is "No entitlements were found" #5

Closed TomDoesb closed 11 months ago

TomDoesb commented 11 months ago
export type CurrentEntitlementsResponseCode = -1 | 0 | 1 | 2;
export type CurrentEntitlementsResponseMessage = "Incompatible with web" | "Successfully found all entitlements across all product types" | "No entitlements were found" | "Unknown problem trying to retrieve entitlements";

Based on these types I expected to get a 1 responseCode when no entitlements are found. Instead it gives a 404 response code. (tested with iOS Xcode sandbox)

{"responseCode":404,"responseMessage":"No entitlements were found"}
CraigRonald555 commented 11 months ago

Hi Tom, apologies for this oversight. I’m going to get some fixes out today. Thanks