square / in-app-payments-flutter-plugin

Flutter Plugin for Square In-App Payments SDK
https://developer.squareup.com/docs
Apache License 2.0
340 stars 121 forks source link

square_in_app_payments App Crash on Android release mode #185

Closed jaiiidiii closed 2 years ago

jaiiidiii commented 2 years ago

Describe the issue

App is working fine on android debug mode and also in iOS but crashing on android release mode

My Implementation Future onStartCardEntryFlow(String? appID) async { // this.amountPayable = amountPayable; await InAppPayments.setSquareApplicationId(appID ?? squareApplicationId); if (Platform.isIOS) { await _setIOSCardEntryTheme(); } await InAppPayments.startCardEntryFlow( onCardNonceRequestSuccess: _onCardEntryCardNonceRequestSuccess, onCardEntryCancel: () {}, collectPostalCode: false); }

Environment (please complete the following information):