paytabscom / paytabs-android-library-sample

Sample for Paytabs android library
MIT License
11 stars 7 forks source link

App restart when calling startCardPayment() #24

Closed ramyassaf closed 3 years ago

ramyassaf commented 3 years ago

We are facing a very weird issue when clicking pay with card and calling the below function on android:

PaymentSdkActivity.startCardPayment(requireActivity(), configData, callback = this)

The problem is that the app is restarting and auto cleaning the logs, so we are not able to see the problem. And the weird thing is that on some android devices it's working fine, 3 devices out of 10.

Any idea what's the problem here?

mohamedkhairy953 commented 3 years ago

Please provide us with the following: .the version you are using .the parameters passed to configData object. . android versions and phones data where this issue occurs.

ramyassaf commented 3 years ago

Good morning Mohamed,

mohamedkhairy953 commented 3 years ago

Are you using kotlin or java

ramyassaf commented 3 years ago

Kotlin

mohamedkhairy953 commented 3 years ago

Update the version to 6.1.9 and If it did not work Please create a meeting on zoom and send me the link on m.khairy@Paytabs.com tomorrow at 3 pm.

ramyassaf commented 3 years ago

I tried with version 6.1.9, still the same. Can we make it at 4PM GMT+3?

mohamedkhairy953 commented 3 years ago

ok

ramyassaf commented 3 years ago

Hello Mohamed,

Did you receive my zoom link?

ramyassaf commented 3 years ago

Big Thank you @mohamedkhairy953 for you support

The problem was caused by a big drawable icon we used in .setMerchantIcon(drawable) As per Mohamad's recommendation we used a png hosted on server and we passed the link to setMerchantIcon(http link of icon) instead of passing the drawable object.

This solved the app restarting problem.