seontechnologies / seon-android-sdk-public

11 stars 3 forks source link

Cannot resolve symbol 'seon' #20

Closed trinitiwowka closed 11 months ago

trinitiwowka commented 1 year ago

Hi! How i can fix it?

import io.seon.androidsdk.service;

image
trinitiwowka commented 1 year ago

And another question: can i use sdk without .withContext(getApplicationContext()) ? because now i get infinite waiting for function execution( seonFingerprint.getFingerprintBase64)

robertorsulics-seon commented 11 months ago

Hey @trinitiwowka ! I'm going to need a bit more context. For example from the @CapacitorPlugin annotation I'm assuming you are using Capacitor ? The Cannot resolve symbol message usually means that the SDK has not been properly imported. I'm not familiar how Capacitor JS works but please make sure you have followed the SDK's documentation where applicable and the necessary lines are included in your app's build.gradle file.

And another question: can i use sdk without .withContext(getApplicationContext()) ? because now i get infinite waiting for function execution( seonFingerprint.getFingerprintBase64)

No, passing the application context is required for the SDK to function properly. This infinite waiting time can stem from your first issue, if the SDK isn't properly included in your application. Otherwise if imported successfully, please make sure you use the latest available version. If your issue still occurs then please get back to me with some more details.

R

robertorsulics-seon commented 11 months ago

closed due to inactivity

trinitiwowka commented 11 months ago

Thank you. my solution was

Seon seonFingerprint = new SeonBuilder()
                    .withContext(this.getActivity().getApplicationContext())
                    .withSessionId(SESSION_ID)
                    .build();