Configure server notifications
Configure the Google real-time developer notifications to ensure that IAPHUB receives an event when there is a change in subscription status.
note
Configuring server notifications isn't required but highly recommended, doing so will speed up the sync between Google and IAPHUB.
1. Enable Google Cloud Pub/Sub for your project here
![](/img/set-up-android/configure-server-notifications/1.png)
2. Go to the Pub/Sub topics page in the Cloud Console
3. Click on CREATE TOPIC
![](/img/set-up-android/configure-server-notifications/3.png)
4. Create a topic gplay-notifications
![](/img/set-up-android/configure-server-notifications/4.png)
5. Display the menu for the topic you just created, and click on Create subscription
![](/img/set-up-android/configure-server-notifications/5.png)
6. Go to the settings page of the IAPHUB dashboard, click on the "Android" section and copy the server notifications url
![](/img/set-up-android/configure-server-notifications/6.png)
7. Select "Push" delivery type, enter the url of the previous screen and create the subscription
![](/img/set-up-android/configure-server-notifications/7.png)
8. Go to the Pub/Sub topics page and edit the permissions of the topic you've previously created
![](/img/set-up-android/configure-server-notifications/8.png)
9. Click on ADD MEMBER
![](/img/set-up-android/configure-server-notifications/9.png)
10. Add the service account [email protected]
and grant it the role of Pub/Sub Admin
![](/img/set-up-android/configure-server-notifications/10.png)
11. Open the Google Play Console, navigate to your app and go to Monetize > Monetization setup, scroll to the Real-time developer notifications section and enter your topic name
![](/img/set-up-android/configure-server-notifications/11.png?v=2)
12. Save and send a test notification, if everything is configured correctly when refreshing the IAPHUB settings page you should see a Last received
timestamp
![](/img/set-up-android/configure-server-notifications/12.png)