paytabscom/flutter-sdk-bridge

App crashes in release mode

Closed this issue · 12 comments

After cloning the example project and building the apk using flutter build apk command the app crashed.

Steps to reproduce
1- Clone the example project
2- Run flutter build apk
3- Open the app and click the Pay with PayTabs

Hello
I have walked through the steps but no crashes happened on my device
Please provide us with more info like which device you use, the SDK version, maybe the stack trace of the crash if you have it
and the version of the aar file

In the meantime, I will do some search to figure out what could be the cause.

@mohamedkhairy953 I'm using your own example project and my mobile android version is 9.

@mohamedkhairy953 It is working while development but when I build the release version it crashes

Do you enable the obfuscation

Does the problem occurs in ios? And could you provide us with the logs.

@mohamedkhairy953 I haven't tested with iOS, because it is a released version I don't have access to the logs

paytabs_sdk.zip
please download the above aar file and replace it in this path: ..\flutter-sdk-bridge\android\paytabs_sdk
and let me know the result

@mohamedkhairy953 I replaced it but still the app crashes

@mohamedkhairy953 But it is working fine when I run the app with flutter run --release command

Hello
Please try the new version 1.0.6 and let me know

@mohamedkhairy953 thank you, it is working now