Log errors in the subscription flow
This commit is contained in:
parent
9194c5d690
commit
dcb4b4528f
|
@ -176,6 +176,8 @@ class _SubscriptionPageState extends State<SubscriptionPage> {
|
||||||
await InAppPurchaseConnection.instance
|
await InAppPurchaseConnection.instance
|
||||||
.queryProductDetails([productID].toSet());
|
.queryProductDetails([productID].toSet());
|
||||||
if (response.notFoundIDs.isNotEmpty) {
|
if (response.notFoundIDs.isNotEmpty) {
|
||||||
|
_logger.severe("Could not find products: " +
|
||||||
|
response.notFoundIDs.toString());
|
||||||
await _dialog.hide();
|
await _dialog.hide();
|
||||||
showGenericErrorDialog(context);
|
showGenericErrorDialog(context);
|
||||||
return;
|
return;
|
||||||
|
@ -188,6 +190,8 @@ class _SubscriptionPageState extends State<SubscriptionPage> {
|
||||||
await InAppPurchaseConnection.instance.queryProductDetails(
|
await InAppPurchaseConnection.instance.queryProductDetails(
|
||||||
[_currentSubscription.productID].toSet());
|
[_currentSubscription.productID].toSet());
|
||||||
if (existingProductDetailsResponse.notFoundIDs.isNotEmpty) {
|
if (existingProductDetailsResponse.notFoundIDs.isNotEmpty) {
|
||||||
|
_logger.severe("Could not find existing products: " +
|
||||||
|
response.notFoundIDs.toString());
|
||||||
await _dialog.hide();
|
await _dialog.hide();
|
||||||
showGenericErrorDialog(context);
|
showGenericErrorDialog(context);
|
||||||
return;
|
return;
|
||||||
|
|
Loading…
Reference in a new issue