mlkit icon indicating copy to clipboard operation
mlkit copied to clipboard

Significant iOS launch delay when using mlkit-core and mlkit-text-recognition

Open rdlauer opened this issue 1 year ago • 0 comments

After spinning up a fresh hello world app, I added the following two plugins:

"@nativescript/mlkit-core": "^2.1.0",
"@nativescript/mlkit-text-recognition": "^2.1.0",

When running the app in the iOS simulator, there is a significant (i.e. 3-5 second) delay when the app launches. Any ideas what the culprit could be?

Full platform.json:

{
  "name": "testapp",
  "main": "app/app.ts",
  "version": "1.0.0",
  "private": true,
  "dependencies": {
    "@nativescript/core": "~8.8.6",
    "@nativescript/mlkit-core": "^2.1.0",
    "@nativescript/mlkit-text-recognition": "^2.1.0",
    "@nativescript/theme": "^3.1.0"
  },
  "devDependencies": {
    "@nativescript/ios": "8.8.2",
    "@nativescript/types": "~8.8.0",
    "@nativescript/webpack": "~5.0.22",
    "typescript": "~5.7.2"
  }
}

rdlauer avatar Dec 03 '24 01:12 rdlauer