Android using front camera instead of back camera
Please provide your development details as below;
1. SDK Version: Unity 5.0.6
2. Development Environment: Unity-Android
3. Tracker/Scanner: Image Tracker
4. License Type: Pro One Time Fee
5. Target Device(Optional): Google Pixel 3
6. Unity Version: 2019.4.28f1
Hi!
One of our customers says when they used our app, the camera is using the selfie camera instead of the back camera. So all they see is themselves.
We were NOT able to replicate this issue on our own phones (Pixel 8, Galaxy S10, Galaxy S12)
This is also the first time we are hearing about this issue as this specific app has been out for a few years now.
Thank you!
Thank you for your interest in MAXST AR SDK.
Let us know the name of your app so we can download and check it out first.
And if you know what device it is, let us know.
Usually the front and back cameras are numbered 0 and 1, but if the front and back cameras on your particular phone are numbered 1 and 0, I think this could be the cause.
If this is the case, you may need to swap the front and back cameras between manufacturers.
If you have any questions, feel free to ask.
Thank you.
Best regards,
Shelden
MAXST Support Team
Hi Shelden,
App Name on Google Play: VR Universe
Device according to the customer: Google Pixel 3
How do I tell if the cameras are 0 or 1 without having to buy all the phones and testing if the camera is facing the correct way?
How do I swap the front and back cameras between manufactures?
Thank you for your response and time. Looking forward to hearing back on how the testing goes on your end.
It appears that the Pixel 3 itself has its own bug that prevents the rear camera from working properly.
We don't have a Pixel 3 on our end, so it's difficult to test.
If you have a Pixel 3, please check if the rear camera is working properly in the default camera app.
Thank you
Hi Shelden,
Thank you for looking into it.
Unfortunately, we do not have pixel 3 to test. (I've tested on Pixel 8, Galaxy S10, Galaxy S12 and they are working fine)
Any ideas on what I can do on my end or what I can suggest the customer to do to always have the back camera be the default?
How do I tell if the cameras are 0 or 1 without having to buy all the phones and testing if the camera is facing the correct way?
How do I swap the front and back cameras between manufactures?
Thank you
We implemented this assuming that the back is number 0 and the front is number 1 on all devices.
We just assumed that when the front camera came out, the order of front and back changed.
After looking up information about the Pixel 3 bug, I believe this was caused by the OS not recognizing the rear camera itself, but only the front camera.
And we don't know how to determine the order of the front and back cameras.
If both the front and back cameras are working fine and our AR SDK shows the front camera, please let us know again. We'll see what we can do, thank you.