Closed Lastmanstanding closed 5 years ago
Auto-consume works now over mobile networks in our environment. We have upgraded to Flutter v0.8.2 but unclear if that had any impact. Could be whatever else. Anyway, there are some error handling requests attached in this issue, but I will still close this one.
There is a consistent issue in our environment when running
FlutterIap.buy
over Mobile data network where it fails with error code 6 (BILLING_RESPONSE_RESULT_ERROR - Fatal error during the API action) when, seemingly, doing the auto-consume. The actual (first) purchase goes through fine, but subsequential purchases of same product thus fails with error code 7 (BILLING_RESPONSE_RESULT_ITEM_ALREADY_OWNED). No exceptions are thrown. Running the same code over Wifi works fine, both consume/purchase.We have not tried this with a different carrier, since the behaviour is still unexpected and thus need to be controlled in code. If it is just a carrier issue it would be good to have an exception thrown, and/or possibly the consume functionality exposed as part of package.
The tests are run on v1.2.3, android, with product
android.test.purchased
A snippet code to produce this:
Have attached some of the output from 2 subsequentual purchases run over Wifi and then same over Mobile data. First over Wifi.txt Second over Wifi.txt First over Mobile data.txt Second over Mobile data.txt
Short summary of those:
First purchase using Wifi, gives:
First purchase using Mobile data, gives:
Second purchase using Mobile data, gives: