Search code examples
androidin-app-billingandroid-instant-apps

Is that possible to make in app billing in Android instant apps?


Here's my implementation:

private IabHelper mIabHelper;
@Override
protected void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    mIabHelper = new IabHelper(this, GOOGLE_BASE64_KEY);
    mIabHelper.startSetup(this);
}

@Override
public void onIabSetupFinished(IabResult result) {
    if (result.isSuccess()){
        mIabHelper.queryInventoryAsync(true, this);
    } else {
        Log.e("test","onIabSetupFinished-result:"+result.getMessage());
    }
}

Then I got this:

08-09 21:44:00.859 5839-5839/? D/IabHelper: IAB helper created.
08-09 21:44:00.859 5839-5839/? D/IabHelper: Starting in-app billing setup.
08-09 21:44:00.923 5839-5839/? D/IabHelper: Billing service connected.
08-09 21:44:00.925 5839-5839/? D/IabHelper: Checking for in-app billing 3 support.
08-09 21:44:00.934 17057-17069/? I/Finsky: [430] com.google.android.finsky.billing.iab.z.b(44): ...: Account from first account - [...]
08-09 21:44:00.937 17057-17069/? W/Finsky: [430] com.google.android.finsky.billing.iab.z.a(64): Package name ... does not match UID 99089
08-09 21:44:00.938 5839-5839/? E/test: onIabSetupFinished-result:Error checking for billing v3 support. (response: 5:Developer Error)

Solution

  • Google Play Billing is not yet supported with Instant Apps, but we are working on it.