#Android Billing IAP Products not loading

1 messages · Page 1 of 1 (latest)

scarlet tree
#

My android products arent loading in when i call OnStoreInitialized. for reference i have an error log and a product print out neither of these get hit, seems to be silently failing. however in editor locally it does load the items properly and shows their names/ids so i know thats setup properly. also on apple it seems to work just fine and im using the same productId's across both platforms. I did some searches on here and saw a potential bug that if there was another billing package installed it could fail but I dont even know how to confirm that since im building bundles and the manifest becomes obfuscated into binary so a bit confused on how to proceed.

  void OnStoreInitialized(BillingServicesInitializeStoreResult result, Error error)
    {
        if (error != null)
        {
            Debug.LogError(error.Description);
            return;
        }

        Debug.LogError($"Store ready with {result.Products.Length} products!!!!!!!!!!!!!!!!!!!!!!");```
scarlet tree
#

I noticed unity IAP is installed i can remove it from the package manager just want to confirm if thats something i should fiddle with. team had a previous developer before me and instead of starting from scratch i was told to build on top of layers so theres other assets that could be conflicting @orchid trout let me know what you think

orchid trout
#

Pls delete unity iap as its not a requirement for essential kit. Also, we noticed few devs had an issue with unity iap for the same reason.

#

Unity iap capturing the native events early leading to this issue.

orchid trout
#

@scarlet tree Did it work?

scarlet tree
#

yes it did! haha thanks was sorting the receipts for google and sorting out storekit2 stuff kept getting a status of rejected on them but all sorted now. appreciate the help !

#

btw while i have you here, my game plays in landscape mode, but when the native IAP pops up its in portrait mode. how can i sort that ?

scarlet tree
#

@orchid trout quick bump

orchid trout
#

This is known issue from google Android

#

However, we don't use Unity IAP, but still the same underlying native billing dependency for both.

#

You can re-open the issue here.

scarlet tree