Skip to main content
Question

More detailed documentation on pub/sub


Forum|alt.badge.img+4

Hi,

is there a more detailed information on pub/sub and revenue cat?

I read this but its not working like this: https://www.revenuecat.com/docs/google-server-notifications

  • I can't enable pub/sub via the link on the first point. Is google cloud billing needs to be active for this?

 

I tried to create it manually, a push subscription but Im not sure about the settings and the revenue cat push url.

3 replies

sharif
RevenueCat Staff
Forum|alt.badge.img+9
  • RevenueCat Staff
  • 513 replies
  • January 12, 2023

Hello! Generally we recommend letting RevenueCat create the pub/sub topic for you. As long as your service credentials are set up with the correct permissions RevenueCat can do the rest.

But for step 1, the link seems to work for me. You do need to connect your Google Play Console to Google Cloud: https://www.revenuecat.com/docs/creating-play-service-credentials#1-link-to-a-google-cloud-project 

Let me know if you need additional help here!


Forum|alt.badge.img+4
  • Author
  • Member
  • 8 replies
  • January 16, 2023

Hi @sharif  I will test it the next days.

I think I did the credential stuff a long time ago. Wouldn't everything else like fetching the products from the Playstore to RevenueCat not work without it?


Forum|alt.badge.img+4
  • Author
  • Member
  • 8 replies
  • January 17, 2023

@sharif It seems like I had to enable pub/sub manually for my project and for something above like my account (Android Developer) or something like that, Im not sure on this and never worked a lot of google cloud.

The RevenueCat dashboard can connect now but how can I test if this actually works?

  • I can send a test notification and the last received shows the current date
  • If I refund It via the RevenueCat dashboard it gets updated instantly in my database via hook and rest call.

I just noticed an issue with web hooks it renews every 5 minutes and I refund via google play store console it does not fire another event with the cancelation after the renewal, maybe thats a  concurrency issue? It looks like that the renewal just went as a last event because it was already queued?


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings