CodeFlowOrg / forestTreesTagging

This project has the vision to assist the officials for Forest trees census and tagging each tree with proper location (latitude and longitude), tree type, and other arguments. and further had the plan to apply data analysis over-collected data.
20 stars 38 forks source link

BarcodeScanner throws error and results in the app being haulted in black screen #63

Closed anotherwebguy closed 3 years ago

anotherwebguy commented 3 years ago

Describe the bug:

The barcode scanner throws error when if suppose the user decides to not scan and presses back button or when the cameraaccess is denied by the app user. This results the app to hault with a black screen and the app doesn't works.

To Reproduce:

Steps to reproduce the behavior: we can put the barcode scanning part in an try and catch block that will handle errors like what to happen camera access is not given or when the user presses back button.

Expected behavior:

after adding the try and catch statements the app would work fine and it would improve user experience

Screenshots:

Screenshot (312)


plz let me work on this issue @ghackg11 , as i've already worked with barcode scanner i know how to fix this issue

anotherwebguy commented 3 years ago

Describe the bug:

The barcode scanner throws error when if suppose the user decides to not scan and presses back button or when the cameraaccess is denied by the app user. This results the app to hault with a black screen and the app doesn't works.

To Reproduce:

Steps to reproduce the behavior: we can put the barcode scanning part in an try and catch block that will handle errors like what to happen camera access is not given or when the user presses back button.

Expected behavior:

after adding the try and catch statements the app would work fine and it would improve user experience

Screenshots:

Screenshot (312)

plz let me work on this issue @ghackg11 , as i've already worked with barcode scanner i know how to fix this issue

can i work on this @ghackg11 ?