I already installed the sample app I build but it force stop when scan qr was clicked, my device is Poco f4
top of page
FORUM
To see this working, head to your live site.
Force stop when clicking the scan qr
Force stop when clicking the scan qr
4 answers0 replies
Comments (4)
bottom of page
Hi Christian,
Would you be able to provide me with the Android Logcat messages for when you app is stopping?
If the App is force stopping when you click the Scan QR button on the dashboard, this might be an issue with the camera permissions preventing you from proceeding to the ARMapSession scene.
To resolve this I would recommend that you make the following changes to the script files:
In the file Assets\ARwayKitSDK\SampleApp\2_Scripts\QRCodeScanner.cs, add these two red highlighted lines for webcamtexture to the following Awake function:
  private void Awake()
  {
    qrGenerator = GetComponent<QRCodeGenerator>();
    m_LocalizationStatus = LocalizationStatus.waiting;
    WebCamTexture webcamTexture = new WebCamTexture();
    webcamTexture.Stop();
  }
Then in the Start function in the same file, you can uncomment CheckCamPermission():
  private void Start()
  {
    CheckCamPermission();
  }
This way, you can ensure that you are checking the camera permissions for the user when entering the AR scene.
UP!