Setup a native app
App Stores and Subscriptions

Setup real-time developer notifications for Android in Google Play Account

14min

Purple Manager



Summary

In this article, you learn how to set up real time developer notifications for Android in your Google Play Account, send a test notification from the Google Play console and check the RTDN status in Purple Manager.



Preconditions

  • All apps in your Purple Manager team are part of the same Google Play account
  • In the Google Play console have the role for Google Play Developer as 'Account owner' 
  • In the Google Play console, have a Google Cloud project linked below API access


How-to guide

1. Go to https://console.cloud.google.com/cloudpubsub/topic/list and click on the projects dropdown

Document image


2. Choose your desired project from the list by setting a hook next to it

Document image


3. Click on 'OPEN'

Document image


4. Click on 'CREATE TOPIC'

Document image


5. Type an ID for your topic that describes your app, in our example "documentation-app"

Document image


6. Click on 'CREATE TOPIC'

Document image


7. Click on 'Subscriptions'

Document image


8. Click on 'CREATE SUBSCRIPTION'

Document image


9. Enter a subscription ID e.g. the name of your topic ID "documentation-app"

Document image


10. Go to 'Select a Cloud Pub/Sub topic' and choose your previously created topic by clicking on it

Document image


11. Scroll down to 'Delivery type' and click on 'Push'

Document image


12. Click on 'Endpoint URL' and paste the URL depending on the environment which you are using for your app in Purple Manager:

Production: https://receipts.purplemanager.com/api/v1/notifications/google Staging: https://staging-receipts.purplemanager.com/api/v1/notifications/google

Document image


13. Scroll down to 'Retry policy' and click on 'Retry after exponential backoff delay'

Step 13 screenshot
Step 13 screenshot


14. Click in the field 'Minimum backoff (seconds)' and type '10'

Document image


15. Click in the field 'Maximum backoff (seconds)' and type '600'

Document image


16. Click on 'CREATE'

Document image


17. Choose your recently created topic by clicking on it.

Document image


18. Click on 'ADD PRINCIPAL'

Document image


19. Click on 'New Principals' and paste "[email protected]" into the field

Document image


20. Below 'Assign Roles' click on 'Select a role'

Document image


21. Choose 'Pub/Sub' and click on 'Pub/Sub Publisher'

Document image


22. Click on 'SAVE'

Document image


23. Click on the arrow to go back to the topics list page. Keep the browser tab open.

Document image


24. Open a second tab in your browser

25. Go to Google Play Console, choose your app, and click on 'Monetisation setup'

Document image


26. Click on 'Topics'

Document image


27. Click on your previously created topic in the column 'topic ID' (in this example 'documentation-app')

Document image


28. Go to 'Topic name' and copy the name by clicking on the copy symbol

Document image


29. Go back to the open browser tab 'Google Play Console'

30. Next to 'Topic name' paste your copied topic name (in this example 'projects/pc-api-8140844497551027397-306/topics/documentation-app') into the field

Document image


31. Click on 'Send test notification'

Document image


32. Click on 'Save Changes'

33. Go to Purple Manager -> 'Apps' -> 'Overview'

Document image


34. Click on the three dots

Step 2 screenshot
Step 2 screenshot


35. Click on 'App status' in the dropdown

Document image


36. RTDN Status shows the time when the test notification was triggered from the Google Play console

Document image