Flutter InAppPurchase products not showing on release build

756

Well, found the problem, apparently queryProductDetails([...]) needs to be called after isAvailable() returns true.

I had both calls running asynchronously and for some reason it was working in debug mode but not release.

Share:
756
Alqueraf
Author by

Alqueraf

Updated on December 13, 2022

Comments

  • Alqueraf
    Alqueraf over 1 year

    I've added the in_app_purchase flutter package and was working fine on debug (followed the setup instructions etc.) but when I build the release apk it cannot find any of the products, all are returned under notFoundIDs without stating any error.

    I've tried flutter clean. Also Tried using the exact same buildTypes config on both, same result.

    Any idea why the release build would not return any queried items? Thanks.