Skip to content

Initialization on iOS take some time #6

@Johny8811

Description

@Johny8811

Hi guys,

this is my implementation of scanner

`export const scanDocument = async () => {
try {
await readLicence();
} catch (error) {
throw error;
}

try {
await setOCRConfig();
} catch (error) {
throw error;
}

try {
return await showScanner();
} catch (error) {
throw error;
}
};`

I call this method in useEffect but scanner will not start on iOS, without any error.

useEffect(() => { scanDocument(); }, []);

I tried add some timeout. 300ms scanner start correctly, below 300ms scanner doesn't work.

Android works correctly, scanner start immediately after component is mounted.

What is wrong??

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions