Giter VIP home page Giter VIP logo

Comments (7)

claudeaparecio avatar claudeaparecio commented on July 28, 2024 2

Thanks a lot @hukid it's working now. u r awesome :D

from react-native-square-reader-sdk.

hukid avatar hukid commented on July 28, 2024

@claude39 Where did you attach the logcat log?

and when the authCode isn't correct, what's error message did you see?

Can you let us know your Reader SDK version and Android SDK version?

from react-native-square-reader-sdk.

claudeaparecio avatar claudeaparecio commented on July 28, 2024

thanks for quick response @hukid
when the authcode is incorrect the app crashes and shows an error "App has stopped"

log.txt

from react-native-square-reader-sdk.

claudeaparecio avatar claudeaparecio commented on July 28, 2024

I am using SDKVersion 28 for android and Reader SDKVersion 1.2.0

from react-native-square-reader-sdk.

hukid avatar hukid commented on July 28, 2024

@claude39 Thanks for the information!

From the log, it seems you have a dependency conflict in your project. Do you depend on any other modules that requires play-services-safetynet?

Please try to add this following line to your android app's build.gradle. You may choose different version based on your other dependencies:
implementation ‘com.google.android.gms:play-services-safetynet:15.0.1’

from react-native-square-reader-sdk.

claudeaparecio avatar claudeaparecio commented on July 28, 2024

I'll check on that. But, the app seems to be running perfectly when the authcode was incorrect.

I'll get back to you after trying that one.

from react-native-square-reader-sdk.

karmatradeDev avatar karmatradeDev commented on July 28, 2024

Hi im having this problem on the newest release 1.4.3
it was working at one point.

happens at await authorizeAsync(authCode)

error:
ERROR Your app just crashed. See the error below.
java.lang.NoSuchMethodError: No static method createRuntimeMessageAdapter(Ljava/lang/Class;Z)Lcom/squareup/wire/internal/RuntimeMessageAdapter; in class Lcom/squareup/wire/internal/ReflectionKt; or its super classes (declaration of 'com.squareup.wire.internal.ReflectionKt' appears in /data/app/~~9krk-Kh-k6lTwc3KVoMJeQ==/com.karmatrade.app-sDA_e0C0NGPr7EFXigLjIg==/base.apk!classes31.dex)
com.squareup.wire.WireTypeAdapterFactory.create(WireTypeAdapterFactory.kt:81)
com.google.gson.Gson.getAdapter(Gson.java:556)
retrofit2.converter.gson.GsonConverterFactory.requestBodyConverter(GsonConverterFactory.java:71)
retrofit2.Retrofit.nextRequestBodyConverter(Retrofit.java:304)
retrofit2.Retrofit.requestBodyConverter(Retrofit.java:284)
retrofit2.RequestFactory$Builder.parseParameterAnnotation(RequestFactory.java:732)
retrofit2.RequestFactory$Builder.parseParameter(RequestFactory.java:306)
retrofit2.RequestFactory$Builder.build(RequestFactory.java:193)
retrofit2.RequestFactory.parseAnnotations(RequestFactory.java:67)
retrofit2.ServiceMethod.parseAnnotations(ServiceMethod.java:26)
retrofit2.Retrofit.loadServiceMethod(Retrofit.java:192)
retrofit2.Retrofit$1.invoke(Retrofit.java:149)
java.lang.reflect.Proxy.invoke(Proxy.java:1006)
$Proxy11.login(Unknown Source)
com.squareup.sdk.reader.authorization.ReaderSdkAuthenticator.login(ReaderSdkAuthenticator.kt:120)
com.squareup.sdk.reader.authorization.RealAuthorizationManager.authorize(RealAuthorizationManager.java:110)
com.squareup.sdk.reader.react.AuthorizationModule$2.run(AuthorizationModule.java:117)
android.os.Handler.handleCallback(Handler.java:942)
android.os.Handler.dispatchMessage(Handler.java:99)
android.os.Looper.loopOnce(Looper.java:201)
android.os.Looper.loop(Looper.java:288)
android.app.ActivityThread.main(ActivityThread.java:7884)
java.lang.reflect.Method.invoke(Native Method)
com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:548)
com.android.internal.os.ZygoteInit.main(ZygoteInit.java:936)
› Stopped server

RN: 0.71.8
using expo 48
System:
OS: macOS 13.0.1
CPU: (10) arm64 Apple M1 Pro
Memory: 81.00 MB / 16.00 GB
Shell: 5.8.1 - /bin/zsh
Binaries:
Node: 16.14.0 - ~/.nvm/versions/node/v16.14.0/bin/node
Yarn: 3.5.0 - ~/.nvm/versions/node/v16.14.0/bin/yarn
npm: 8.5.4 - ~/.nvm/versions/node/v16.14.0/bin/npm
Watchman: 2023.05.01.00 - /opt/homebrew/bin/watchman
Managers:
CocoaPods: 1.12.1 - /opt/homebrew/bin/pod
SDKs:
iOS SDK:
Platforms: DriverKit 22.2, iOS 16.2, macOS 13.1, tvOS 16.1, watchOS 9.1
Android SDK: Not Found
IDEs:
Android Studio: 2021.2 AI-212.5712.43.2112.8609683
Xcode: 14.2/14C18 - /usr/bin/xcodebuild
Languages:
Java: 18.0.2 - /usr/bin/javac
npmPackages:
@react-native-community/cli: Not Found
react: Not Found
react-native: Not Found
react-native-macos: Not Found
npmGlobalPackages:
react-native: Not Found

from react-native-square-reader-sdk.

Related Issues (20)

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.