seontechnologies / seon-android-sdk-public

11 stars 3 forks source link

seonFingerprint.getFingerprintBase64 doesn't invoke complete callback #4

Closed gurinovich89 closed 1 year ago

gurinovich89 commented 2 years ago

implementation('io.seon.androidsdk:androidsdk:4.0.0') { transitive = true } I am using this code

val sessionId = getDeviceId(applicationContext) val seonFingerprint = SeonBuilder().withContext(applicationContext).withSessionId(sessionId).build() seonFingerprint.setLoggingEnabled(true) seonFingerprint.getFingerprintBase64 { seonResult -> Log.i("seon", "seonResult=$seonResult") continuation.resume(seonResult) }

In logs I see E/io.seon.androidsdk.service.TelephonyProbe: There is no granted READ_PHONE_STATE permission and getFingerprintBase64 doent's invoke oncomplete callback and without any catched exceptions. Why it happens? READ_PHONE_STATE isn't obligotary for working seon check according documentation.

robertorsulics-seon commented 1 year ago

Hey @gurinovich89 ! Thanks for reporting this issue. You're right READ_PHONE_STATE isn't necessary for the SDK to work properly, we're going to change this message in an upcoming release because it's a bit misleading in it's current form.

Unfortunately I couldn't reproduce your issue. I've tried your sample with the SDK version you mentioned and I successfully receive the fingerprint. Could you help with some more information or possibly upload a sample project where you can reproduce this behaviour?