Not being able to establish connection for In app billing in android

后端 未结 1 1217
北荒
北荒 2020-12-20 05:40

I am trying to integrate In app billing v3 in my app. I call the following function to initialize.

public static void SetupInappBilling()
{
    mHelper = new         


        
相关标签:
1条回答
  • 2020-12-20 06:13

    As discussed, the example IabHelper implementation ignores the return value of the bindService() call.

    bindService() returns false if it cannot bind to the Service. In this case, no callbacks will ever get called. In this respect, the return value of bindService() is essential for the program logic and should never be ignored; the example application is not exactly perfect here.

    If I recall this correctly, conditions where binding to the IAB V3 will not work are:

    • Only IAB V2 is available (it uses a different class name)
    • Google Play is not fully set up
    0 讨论(0)
提交回复
热议问题