Android In-App Billing Subscription status change callbacks

前端 未结 3 1831
广开言路
广开言路 2021-02-02 17:18

I\'m writing an app that will support in-app subscriptions. The subscriptions will enable my users to use a number of services and benefits outside the Android world. I know tha

3条回答
  •  旧时难觅i
    2021-02-02 17:46

    Take a look at Real Time Notifications using Google Cloud's PubSub service. It sends notifications of payment/subscription events like: new buy, renewal, cancellation etc. It includes the token which can be used to retrieve additional info from the API like you do now.

    You can also configure this PubSub Subscription to call a custom webhook (which still needs to query the PubSub) on each message that you receive.

提交回复
热议问题