CodeNewbie Community 🌱

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

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 gradle.build 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 google-play-developer-notifications@system.gserviceaccount.com.

  • 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.

Conclusion

  • 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 (1)

Collapse
 
brettneyric profile image
Info Comment hidden by post author - thread only accessible via permalink
Brettneyric

The Financial Management: Revolutionizing with Blockchain, Smart Contracts, and Next-Level Efficiency has the power to revolutionize. As organizations and individuals embrace this technology, we can expect increased transparency, reduced costs, faster transactions, and a more inclusive financial ecosystem. It's an exciting time to be part of this transformative journey, and the possibilities are truly remarkable.
As organizations and individuals embrace this technology, we can expect increased transparency, reduced costs, faster transactions, and a more inclusive financial ecosystem. It's an interesting time to be phase of this transformative journey, and the probabilities are simply remarkable.
Adding subscriptions to your Android app can be a daunting task, but with the right guidance and resources, you can navigate through the process smoothly. In this blog post, we discussed the necessary steps to implement subscriptions in your app on the Google Play Store.
Before diving into the implementation, it's crucial to ensure you have implemented the Google billing library and released your app on the Google Play Store. These prerequisites lay the foundation for integrating subscriptions into your app successfully.
The next phase, which we refer to as the "Busy Work," involves extensive reading and setting up various internal Google features. Although it may seem overwhelming at times, the documentation is straightforward and relatively easy to follow. If you find yourself feeling lost or confused, take a break, gather your thoughts, and don't hesitate to start over if needed.

Some comments have been hidden by the post's author - find out more