liqpay / sdk-aos

LiqPay Android sdk
6 stars 5 forks source link

Android 10 and READ_PHONE_STATE #6

Open MichaelBabets opened 4 years ago

MichaelBabets commented 4 years ago

Starting with the version of Android 10, Google changed access to some permissions. And now there is no way to get permission READ_PHONE_STATE.

If you set targetSdkVersion 29, when you try to open the checkout, you get java.lang.SecurityException: getDeviceId: The user does not meet the requirements to access device identifiers. Even if the user gives permission to READ_PHONE_STATE.

By the way, it is not at all clear why this permission is needed. It is difficult to explain to the user that the application requires access to the phone to pay by card.

HryhoriiZiahun commented 3 years ago

Any news for update library for API 29?

SergeyShustikov commented 3 years ago

Just remove the hash device from the request and it will work

St1ma commented 3 years ago

@SergeyShustikov Beg your pardon, could you please provide details on how to do that? @andrewdidovik Does anybody support this lib?

andrewdidovik commented 3 years ago

Hello everyone, unfortunately, now nobody support this lib Please look at our Liqpay documentation https://www.liqpay.ua/documentation Please, read https://www.liqpay.ua/en/faq before you start use Liqpay as acquire You can find there how to use Gpay and Privatpay method Also if you need card method or other - you can use web-view checkout page in your App Also we have some SDK for Android working with Masterpass, if you're interested - please send email to technical.support@liqpay.ua