Problem
The camera was launched from the custom scanning UI, but a black screen was displayed.
Solution
The camera permission has not been requested and the permission verification error code 201 is returned. In this case, request authorization from the user.
For details, please refer to the description of the ArkTS API error code 1000500001: If customScan.init() is not called to complete initialization when the custom UI for barcode scanning is opened for the first time, call customScan.start() to start barcode scanning camera streams as described in the Flowchart of scanning on a custom UI.