Mike Dee
Mike Dee

Reputation: 590

Google Real Time Developer Notifications and PubSub across GCP projects

Is it possible to subscribe to pubsub notification across GCP projects?

We want to setup a real time developer notifications for both prod and test environments to handle in-app purchases from Google Play. This isn't built into the Play Store, as it is in the Apple App Store (where there is a sandbox environment that we use for test).

We've setup a pubsub topic as Google describes and connected it to the Play Store. However, we want both prod and test environments, which are in separate GCP proejcts, to subscribe to the topic and then we'll filter the notifications based on if they are intended for prod or test.

If this is not possible, what other ways can we have prod and test environments to receive RTDNs?

Upvotes: 0

Views: 56

Answers (1)

marky
marky

Reputation: 153

As of now, this can’t be done across different GCP projects, subscriptions are only where the topic resides.

On Google side, there is a ‘feature request’ that you can file, but there is no timeline on when it can be done.

What I can suggest for now is to create a separate topic for prod and test environments then configure your Play Store RTDN to receive your desired notification.

Upvotes: 0

Related Questions