Code Monkey home page Code Monkey logo

Comments (6)

sebawita avatar sebawita commented on May 25, 2024

I am experiencing the same issue.
I've tested my app with NativeScript 1.5 and it works fine, however with 1.7.1 the dialogs stop working after I launch the scanner.

from nativescript-barcodescanner.

EddyVerbruggen avatar EddyVerbruggen commented on May 25, 2024

Interestingly this doesn't happen on my Android 4.4 device, I'll test with 5.1 in a sec.

Are you using the demo app, or do I need to run any other code to reproduce this?

from nativescript-barcodescanner.

EddyVerbruggen avatar EddyVerbruggen commented on May 25, 2024

Oh, updating tns core modules from 1.6 to 1.7 makes the alert dialog no longer work.

from nativescript-barcodescanner.

sebawita avatar sebawita commented on May 25, 2024

I can confirm that this solved my problem:

var appmodule = require("application");
const context = appmodule.android.currentContext
vm.scan().then(() => {
appmodule.android.currentContext = context;
});

from nativescript-barcodescanner.

EddyVerbruggen avatar EddyVerbruggen commented on May 25, 2024

Thanks. I should be able to fix that inside the plugin. The change in behaviour is caused by this dialogs module change. I could do the same in the plugin. Need to check backward compatibility though.

from nativescript-barcodescanner.

EddyVerbruggen avatar EddyVerbruggen commented on May 25, 2024

Please update to 1.2.2 and you'll no longer need to work around this issue yourself.

Thanks for reporting this, both!

from nativescript-barcodescanner.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.