RevenueCat purchases not updating in Google/Firebase Analytics.
- [x] I have updated Purchases SDK to the latest version
- [x] I have read the Contribution Guidelines
- [x] I have searched the Community
- [x] I have read docs.revenuecat.com
- [x] I have searched for existing Github issues
Describe the bug A clear and concise description of what the bug is. The more detail you can provide the faster our team will be able to triage and resolve the issue. Do not remove any of the steps from the template below. If a step is not applicable to your issue, please leave that step empty.
- Environment
- Platform: Android(Firebase Analytics)
- SDK version: 6.0.0
- OS version: Android
- Android Studio version: Android Studio Flamingo | 2022.2.1
- How widespread is the issue. Percentage of devices affected: 100%
- Debug logs that reproduce the issue: N/A. It's a thirsparty integration issue
- Steps to reproduce, with a description of expected vs. actual behavior: The same issue under discussion here.
- Other information (e.g. stacktraces, related issues, suggestions how to fix, links for us to have context, eg. stackoverflow, etc.)
Additional context RevenueCat purchases not updating in Google/Firebase Analytics.
👀 We've just linked this issue to our internal tracker and notified the team. Thank you for reporting, we're checking this out!
Hi @Agusioma! Thanks for reaching out!
Could you provide more details about your setup and how you're testing this?
In the meantime, this is the documentation for our firebase integration: https://www.revenuecat.com/docs/firebase-integration.
Please make sure you've followed all those steps. If the issue persists, please send us some logs so we can take a closer look.
@tonidero yes I followed all the steps. No logs coming out, just an empty response in the firebase integrations logs. Below is an example of the request body:
{
"app_instance_id": "dx_pao6MSRWf9SOZb_DkhX",
"events": [
{
"name": "purchase",
"params": {
"affiliation": "PLAY_STORE",
"app_id": "appbXXXX",
"coupon": "",
"currency": "KES",
"environment": "SANDBOX",
"event_id": "c3771909-8e89-4912-b722-188d9c70521f",
"expiration_at": 1687607589990000,
"is_renewal": true,
"is_trial_conversion": false,
"items": [
{
"affiliation": "PLAY_STORE",
"item_id": "rc_sub_premium:pro"
}
],
"original_app_user_id": "$RCAnonymousID:02967b5b1ca34b7a99629b707c54aedd",
"original_transaction_id": "GPA.3373-4651-9140-88706",
"period_type": "NORMAL",
"presented_offering_id": "gold-offer",
"product_id": "rc_sub_premium:pro",
"purchased_at": 1687607289990000,
"transaction_id": "GPA.XXX3-46XX-9140-88706..3",
"value": 500
}
}
],
"user_id": "$RCAnonymousID:02967b5b1ca34b7a99629b707c54aedd"
}
And here is the response:
"empty"
And response headers if they may help:
{
"Alt-Svc": "h3=\":443\"; ma=2592000,h3-29=\":443\"; ma=2592000",
"Cache-Control": "no-cache, no-store, must-revalidate",
"Content-Length": "0",
"Content-Type": "text/plain",
"Cross-Origin-Resource-Policy": "cross-origin",
"Date": "Sat, 24 Jun 2023 11:53:00 GMT",
"Expires": "Fri, 01 Jan 1990 00:00:00 GMT",
"Last-Modified": "Sun, 17 May 1998 03:00:00 GMT",
"Pragma": "no-cache",
"Server": "Golfe2"
}
Hi @Agusioma, let me ask the team and we will get back to you.