List
Android using front camera instead of back camera
Posted Date: 2024-03-22 16:08     Edited Date: 2024-03-26 15:57     Writer: admin

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!

Posted Date: 2024-03-25 1:59     Edited Date: 2024-03-25 1:59     Writer: sejin

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

Posted Date: 2024-03-25 5:58     Edited Date: 2024-03-26 15:57     Writer: admin

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.  

 

Posted Date: 2024-03-26 0:14     Edited Date: 2024-03-26 0:14     Writer: sejin

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

Posted Date: 2024-03-26 0:45     Edited Date: 2024-03-26 0:46     Writer: admin

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

Posted Date: 2024-03-26 8:58     Edited Date: 2024-03-26 8:59     Writer: sejin

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.