Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

App Crashes when volume pressed #254

Open
cory-creighton opened this issue Feb 3, 2021 · 0 comments
Open

App Crashes when volume pressed #254

cory-creighton opened this issue Feb 3, 2021 · 0 comments

Comments

@cory-creighton
Copy link

App Crashes when the volume is pressed. This appears to be isolated to iOS.

Build Dependencies:

"@nativescript/core": "~7.1.0"
"nativescript-barcodescanner": "^4.0.1"
"nativescript-vue": "^2.8.1"

Console feedback in debug mode:

*** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: '<NSObject: 0x2809bbe80>: An -observeValueForKeyPath:ofObject:change:context: message was received but not handled.
Key path: outputVolume
Observed object: <AVAudioSession: 0x28099ded0>
Change: {
kind = 1;
}
Context: 0x0'
*** First throw call stack:
(0x1a1c0586c 0x1b6b74c50 0x1a2f2d7bc 0x1a2f2d8e0 0x1a2f2fe70 0x1a2f2d08c 0x1a963343c 0x1a962bc60 0x1a17f824c 0x1a17f9db0 0x1a18077ac 0x1a1b8111c 0x1a1b7b120 0x1a1b7a21c 0x1b967e784 0x1a45b8fe0 0x1a45be854 0x103748044 0x103746d44 0x1036e772c 0x1036aa060 0x10370adf4 0x103704eb8 0x102b5a4b8 0x1a183a6b0)

The instance of the barcode scanner is defined as:

barcodescanner.scan({
formats: "QR_CODE,PDF_417",
cancelLabel: "CLOSE SCANNER",
cancelLabelBackgroundColor: "#333333",
showFlipCameraButton: true,
preferFrontCamera: false,
showTorchButton: false,
beepOnScan: false,
torchOn: false,
closeCallback: function () {
scope.closeScanner();
},
resultDisplayDuration: 500,
orientation: "portrait",
openSettingsIfPermissionWasPreviouslyDenied: true
})

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant