evopark / tiqr-android

UNMAINTAINED: QR code scanner for Titanium (Android version)
Other
3 stars 1 forks source link

Not finding codes #2

Open m1ga opened 8 years ago

m1ga commented 8 years ago

I've implemented it like this in my app:

TiQr = require("de.evopark.tiqr");
        TiQr.onCodeReceived = function(e){
            qrCodeWindow.close();
            alert(e);
        };
        qrCodeView = TiQr.createCameraView();
        qrCodeWindow = Titanium.UI.createWindow({
            navBarHidden: true,
            exitOnClose: false,
            backgroundColor: 'black',
            width: '100%',
            height: '100%',
        });
        qrCodeWindow.add(qrCodeView);
        qrCodeWindow.addEventListener("close",function(e){
            TiQr.scanning = false;
        });

        qrCodeWindow.open();
        TiQr.scanning = true;

and I see the camera view but it won't output any codes (no alert).

Ti 5.0.2.GA Android 5.0.1

simplecoder commented 8 years ago

How were you able to add the module to your app to begin with?