mlkit icon indicating copy to clipboard operation
mlkit copied to clipboard

nativescript-inappbrowser incompatibility with 3.0.0-alpha.7 on iOS

Open rdlauer opened this issue 1 year ago • 1 comments

I'm testing out the latest alpha on iOS (haven't tried android yet):

    "@nativescript/mlkit-core": "^3.0.0-alpha.7",
    "@nativescript/mlkit-text-recognition": "^3.0.0-alpha.7"

and unfortunately there seems to be an incompatibility with the popular nativescript-inappbrowser plugin. With all three plugins installed, the "inappbrowser" modal opens and tries to load the source URL, but hangs. This is on a fresh NS app with no other plugins installed.

rdlauer avatar Dec 26 '24 22:12 rdlauer

I am not sure if this is still an issue or related to MLKit, but the inapp browser does not work for me in a Simulator, but on a real device, hence I have added this (for auth flows):

        // On iOS, we need to use the system browser since the inapp browser does not work on the simulator
        if (isIOS && environment.devSettings.enabled) {
            this.openExtAuthLinkSystemBrowser();
        }
        else {
            this.openExtAuthLink().then(() => {
                this.isExtAuthInProgress = false;
            }).catch((err) => {
                this.isExtAuthInProgress = false;
                Trace.write('[LoginFormComponent] - ExtAuth inApp browser open link error caught: ' + err, Trace.categories.Error);
            });    
        }

timdoege avatar Sep 22 '25 12:09 timdoege