IAP: Ignore user cancelled errors

This commit is contained in:
Vishesh Handa
2020-09-01 10:30:09 +02:00
parent b3bdb8657c
commit 4c324a1194

View File

@ -186,7 +186,7 @@ class _PurchaseWidgetState extends State<PurchaseWidget> {
} }
void _handleError(String err) { void _handleError(String err) {
if (Platform.isAndroid) { if (err.toLowerCase().contains("usercanceled")) {
Log.e(err); Log.e(err);
return; return;
} }