IN_APP_NOTIFY with in-app version 3

I play with the code in the application from Google. I read a few documents, but I did not understand a few things. First of all, a little context: I need to listen to changes in the state of ownership, and I can’t just re-request the inventory, like the InApp example in the main action, because I am writing a plug-in for another application, so my entry point is not activity, but broadcast the receiver. I realized that version 3 is based on a periodic inventory check, because in this example there is no code to get any intentions. Now my questions are:

  • Is IN_APP_NOTIFY valid in version 3 of the API?
  • Do I need another intention like PURCHASE_STATE_CHANGED & co?
  • Is there any v3 example to better understand how the IN_APP_NOTIFY broadcast receiver works?
+5
source share

Source: https://habr.com/ru/post/1206359/


All Articles