How to set properties for google pubsub in app?

I am trying to use google pub/sub to provide subscription service to users.

I created one topic and created one subscription(push) to verify normal operation.

But I want to add one more subscription (push), to differentiate between devServer and localServer.

I want to distinguish whether it is devServer or localServer by reading the attribute value of the message through filter.

We can differentiate this on the backend via the pub/sub Filter.

But I don’t know how the app allows the user to purchase a subscription service and enter local or dev information in messages coming through rtdn.

We need your help. Please let me know if my assumptions are wrong or if I need more information!

This Stackoverflow post may help you regarding this https://stackoverflow.com/questions/71732939/how-to-setup-google-rtdn-and-pub-sub-properly-with-backend-and-android-app

2 Likes

Thank you for your answer. I’ll check it !

Thanks for helping out @aaronscottb !