Hello Revenuecat Team,
I have successfully integrated and tested the iOS version, and it works perfectly. Now, I am testing with a real Android device and have made a test purchase for a subscription package. It was successful, but when my server calls the API to check customer info, I receive the following data:
{
"request_date": "2024-03-12T09:15:30Z",
"request_date_ms": 1710234930863,
"subscriber": {
"entitlements": {},
"original_application_version": null,
"original_purchase_date": null,
"other_purchases": {},
"subscriptions": {
"xxx12monthsub": {
"expires_date": "2024-03-12T09:34:17Z"
},
"xxxx.6monthsub": {
"expires_date": "2024-03-12T09:02:55Z"
}
}
}
}
*xxx represents the accurate subscription package code, which I have removed for security reasons.
My question is, if it is an Android device, do I need to check the "subscriptions" instead of "entitlements" as in iOS?
Here is my flow:
1: User clicks on the subscription button on the device -> sends a request to my server.
2: My server calls Revenuecat to retrieve customer info and checks in entitlements.
Please provide me with a solution.