CodeNewbie Community 🌱

Cover image for Adding subscriptions to your Android app. Part 2. Busy work

Posted on

Adding subscriptions to your Android app. Part 2. Busy work

Table of contents

  1. GitHub code
  2. Before we start
  3. The Busy Work
  4. The parts I struggled with

My app on the Google Playstore

GitHub code

Before we start

  • Before you can read any further, you must have done the following 2 things

1) Implement the Google billing library : The library can be found HERE. You need to add this library to your file.

2) Release you app to the play store : Once you have released you app to the google play store with the google billing library, you can now start creating subscriptions

The Busy Work

  • This section will involve you reading a lot of documentation and setting up a lot of internal google features. The specific documentation which is needed can be found HERE

  • Besides there being a lot of reading. The documenation,HERE, is actually very straightforward and relatively easy to follow. If you ever feel lost or confused, don't worry, I felt that too. There might of even been a few times where I stated,you $*****5* that makes no $@*---- sense, why the @#$$** would you do that?. Just make sure to take a break, keep reading and don't be afraid to start over.

The parts I struggled with

  • The first part I struggled with was the Setup Cloud Pub/Sub. I found there to be too many guides and external links with no straight forward path. At times I even felt the documentation was repeating itself. To overcome this I used the recommended Quickstart guide and then I just ignored the clean up section of the guide.

  • The second part I struggled with was the Enable Real-time developer notifications for your app. No matter what I did I could not get the Test Message to send to the cloud pub/sub I had set up earlier. The answer was, to give the proper service account Pub/Sub Publisher access to the topic. The proper service account is

  • I know this guide was short and is not the walk through you were probably looking for. But I do believe the documentation,HERE, really does do a great job at explaining how to get everything working.

  • The next part in the series is where we will be integrating the code into our app.


  • Thank you for taking the time out of your day to read this blog post of mine. If you have any questions or concerns please comment below or reach out to me on Twitter.

Top comments (0)