wallet icon indicating copy to clipboard operation
wallet copied to clipboard

Android: Scanning a QR code logs out

Open otheATgh opened this issue 11 years ago • 3 comments

tested on 4.4 with mobile and 4.1 with tablet.

Scanning a qr code now locks out to the lockscreen but that worked fine before.

otheATgh avatar Dec 12 '14 15:12 otheATgh

I confirmed it happens just on mobile devices; chrome/firefox on macosx with inbuilt camera works fine

otheATgh avatar Dec 12 '14 16:12 otheATgh

Same happens when joining a shared wallet using the qr code.

$scope.openScanner = function() {
  if (window.cordova) return $scope.scannerIntent();

... then it goes into:

$scope.scannerIntent = function() { cordova.plugins.barcodeScanner.scan( function onSuccess(result) { if (result.cancelled) return; $timeout(function() { var data = result.text; $scope.$apply(function() { $scope.sendForm.address.$setViewValue(result.text); $scope.sendForm.address.$render(); }); }, 1000); }, function onError(error) { alert('Scanning error'); });

but when it returns from the scanner plugin it somehow the site to /

I cant really debug after the qr scan has been made it directly reloads the application

otheATgh avatar Dec 12 '14 18:12 otheATgh

Thanks a lot for the report! https://github.com/bitpay/copay/pull/2124 should fix this.

matiu avatar Dec 12 '14 18:12 matiu