Closed tsoen closed 9 months ago
Hi there, sadly there's a consistent issue with flashlight control when using ARCore. Personally I have seen some ARCore enabled devices work just fine, others do not. This is a highly requested feature on their issue tracker: https://github.com/google-ar/arcore-android-sdk/issues/153 & https://github.com/google-ar/arcore-android-sdk/issues/356.
My recommendation would be to reach out to Google through the above issues. The only workaround for Vuforia Engine is to disable ARCore, but that comes with its own performance challenges and feature limitations. For now this issue will be closed as this is a Google ARCore specific issue. I'm sorry I cannot be of more help.
Note: The title was updated to reflect the issue better for findability.
Hi, As @ptc-pscheper mentionned in https://github.com/google-ar/arcore-android-sdk/issues/153, it seems Google added Flash Mode to ARCore v1.45.
Maybe I should create a new ticket about this.
Summarize your device feedback I was having issues trying to enable the flash on my smartphone with Vuforia-Unity (the flash works fine using a Samsung smartphone or tablet). I kept getting the error message "Failed to set camera flash mode". Then I noticed in the Logcat console that there is an exception when starting the application. It looks like it happens when ARCore is initializing, so I am not sure there is something you can do on your side, but asking anyway.
Describe your device Device : OPPO Find X3 Lite 5G. Android 13. The main issue I encountered that lead me to this error is that I can't enable the flash with Vuforia (Unity). The AR (image target) is working fine. Note : the flash was working fine on this device when using the Wikitude's AR SDK.
Business Impact For the moment it is mostly quality of life since most of our users use Samsung devices, however that is not nothing we can force onto them. Also it means there could happen on other devices, and it would be a regression from the previous version of our app since we are migrating from Wikitude to Vuforia, and Wikitude did support the flash on this device.
Link to device manufacturer / device specifications https://www.oppo.com