Closed xeroxstar closed 2 years ago
Fixed:
const getFrameById = require("tns-core-modules/ui/frame").getFrameById;
this.barcodeScanner.requestCameraPermission().then(() => {
this.barcodeScanner.scan({
presentInRootViewController: true, // not needed here, but added it just for show
cancelLabel: "EXIT. Also, try the volume buttons!", // iOS only, default 'Close'
cancelLabelBackgroundColor: "#333333", // iOS only, default '#000000' (black)
message: "Use the volume buttons for extra light", // Android only, default is 'Place a barcode inside the viewfinder rectangle to scan it.'
// preferFrontCamera: front, // Android only, default false
showFlipCameraButton: false, // default false
showTorchButton: false, // iOS only, default false
torchOn: false, // launch with the flashlight on (default false)
resultDisplayDuration: 500, // Android only, default 1500 (ms), set to 0 to disable echoing the scanned text
// orientation: orientation, // Android only, default undefined (sensor-driven orientation), other options: portrait|landscape
beepOnScan: true, // Play or Suppress beep on scan (default true)
fullScreen: false, // iOS 13+ modal appearance changed so they can be swiped down when this is false (default false)
openSettingsIfPermissionWasPreviouslyDenied: true
}).then(() => {
setTimeout(() => {
getFrameById('application').navigate({
moduleName: "application", clearHistory: true
})
});
})
})
Hello, All my Frames are blank after the scan is done. I am getting no errors and not sure how to fix it. After the scan is done i tried to refresh the frame but it wont help.
Here is my code:
application.xml
application.ts
packages.xml
packages.ts
I am using NS 8.2.2 and nativescript-barcodescanner 4.1.2.