Code Monkey home page Code Monkey logo

sdk-aos's People

Contributors

andrewdidovik avatar viplifes avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

sdk-aos's Issues

Mistake function name

public void onResponceError(final ErrorCode errorCode) {
Maybe Response, not Responce ?

This function written on your documentation

Fatal Exception: java.lang.RuntimeException Error receiving broadcast Intent

Fatal Exception: java.lang.RuntimeException: Error receiving broadcast Intent { act=ua.privatbank.paylibliqpay.broadcast flg=0x10 } in ua.privatbank.paylibliqpay.LiqPay$1@159be529
at android.app.LoadedApk$ReceiverDispatcher$Args.run(LoadedApk.java:924)
at android.os.Handler.handleCallback(Handler.java:815)
at android.os.Handler.dispatchMessage(Handler.java:104)
at android.os.Looper.loop(Looper.java:194)
at android.app.ActivityThread.main(ActivityThread.java:5549)
at java.lang.reflect.Method.invoke(Method.java)
at java.lang.reflect.Method.invoke(Method.java:372)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:964)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:759)
Caused by java.lang.IllegalArgumentException: Receiver not registered: ua.privatbank.paylibliqpay.LiqPay$1@159be529
at android.app.LoadedApk.forgetReceiverDispatcher(LoadedApk.java:783)
at android.app.ContextImpl.unregisterReceiver(ContextImpl.java:1781)
at android.content.ContextWrapper.unregisterReceiver(ContextWrapper.java:510)
at ua.privatbank.paylibliqpay.LiqPay$1.onReceive(LiqPay.java:130)
at android.app.LoadedApk$ReceiverDispatcher$Args.run(LoadedApk.java:914)
at android.os.Handler.handleCallback(Handler.java:815)
at android.os.Handler.dispatchMessage(Handler.java:104)
at android.os.Looper.loop(Looper.java:194)
at android.app.ActivityThread.main(ActivityThread.java:5549)
at java.lang.reflect.Method.invoke(Method.java)
at java.lang.reflect.Method.invoke(Method.java:372)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:964)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:759)


Caused by java.lang.IllegalArgumentException
ua.privatbank.paylibliqpay.LiqPay$1.onReceive (LiqPay.java:130)

Android 10 and READ_PHONE_STATE

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.

Documentation

Please, attach some documentation to the project.
If there will be some sample codes -> that will be really great.
Thank you!

Google Pay

Як відправити токенізовані дані в лікпей щоб зразу пройшла оплата?

ua.privatbank.paylibliqpay.BrowserActivity$1.onLoadResource(BrowserActivity.java:68) - StringIndexOutOfBoundsException

java.lang.StringIndexOutOfBoundsException: length=773; regionStart=9; regionLength=-10
at java.lang.String.startEndAndLength(String.java:583)
at java.lang.String.substring(String.java:1464)
at ua.privatbank.paylibliqpay.BrowserActivity$1.onLoadResource(BrowserActivity.java:68)
at android.webkit.CallbackProxy.handleMessage(CallbackProxy.java:465)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loop(Looper.java:137)
at android.app.ActivityThread.main(ActivityThread.java:5494)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:525)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:875)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:691)
at dalvik.system.NativeStart.main(Native Method)

Problem when working with samsung s6

The SDK does not work on this device. The activity starts, then the progress bar is shown, then just a blank screen

some log info:

04-03 16:53:43.121 30944-30944/ua.exist.android I/System.out: lpLog >> https://www.liqpay.com/api/3/checkout
04-03 16:53:43.141 30944-31010/ua.exist.android D/OpenGLRenderer: endAllActiveAnimators on 0x7f71276c00 (ForegroundLinearLayout) with handle 0x7f6fd3b2a0
04-03 16:53:43.141 30944-30944/ua.exist.android I/Timeline: Timeline: Activity_idle id: android.os.BinderProxy@281e75f time:38292159
04-03 16:53:43.331 30944-30944/ua.exist.android W/cr_BindingManager: Cannot call determinedVisibility() - never saw a connection for the pid: 30944
04-03 16:53:43.331 30944-30944/ua.exist.android I/System.out: lpLog >> https://static.liqpay.com/checkout/170330145629/styles/index.css
04-03 16:53:43.331 30944-30944/ua.exist.android I/System.out: lpLog >> https://static.liqpay.com/checkout/170330145629/js/index.js
04-03 16:53:43.521 30944-30944/ua.exist.android I/System.out: lpLog >> ==== onPageFinished:https://www.liqpay.com/ru/checkout/1491227651994343_46798690_thnhZe5TOlkjGmeQBXIJ
04-03 16:53:43.541 30944-30944/ua.exist.android D/ViewRootImpl: #3 mView = null
04-03 16:53:43.541 30944-30944/ua.exist.android I/System.out: lpLog >> https://static.liqpay.com/checkout/170330145629/img/favicon.ico
04-03 16:53:43.541 30944-30944/ua.exist.android E/ViewRootImpl: sendUserActionEvent() mView == null

screenshot of device
image

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.