Open Gratts27 opened 2 years ago
My opinion - the unity component does not work correctly, the plugin has nothing to do with it. when you completely close the application and the unity closes everything, but when you exit the page, the unloadUnity
function works and you need the unity to process it correctly and check the operation of the camera, and when the command is resume
, it starts correctly
I tried with both pausing/resuming and unloadUnity
it explicitly. Calling the resume
is not loading the camera correctly. Could you think of any workaround which might solve this issue for now?
Have you checked Logcat logs? I get this error and am looking into this now also, the issue only happens on Android and not IOS, is probably a Unity issue more than an issue for React Native/the repo owner
com.example E/libc: Access denied finding property "persist.vendor.camera.privapp.list"
I see black background when the QR scanning is still going on. It works perfectly fine when I freshly open the app every time. The issue is only seen when I come back to the same page where Unity component is been used.
I tried with the unloadUnity(). I could see camera for fraction of a sec but it goes away and doesn't come back. (Attached Video with Red background)
My POC has 2 screens:
Steps to reproduce.
Expected: The camera should open up with scanning animation.
Actual: I see the scanning animation but the camera is not getting loaded for long time.
Device: Actual device - OnePlus 3T React native version : 0.68.2 react-native-unity version: 0.2.0
https://user-images.githubusercontent.com/73434824/170483223-e2107882-0114-4b1a-8665-98c99461082d.mov
https://user-images.githubusercontent.com/73434824/170486221-35f81262-03f6-4f7b-a66b-14547d6c94d9.mp4