Repository: googlevr/cardboard

Issue #475: [iPhone] Wrong button touching area, not matching the button icon position
Created: 2024-08-21T09:46:59Z
SPECIFIC ISSUE ENCOUNTERED
Wrong touching area for the close and gear button. It is not matching it's icon position.
But it only happen in iPhone, android devices don't have the problem.
After testing on serval iPhones, I found out the touching area is moved to the right lower bottom below the icon graphic position. Please find the attached photo at the screenshot section to see more details.
So not sure is it about the anchor issue affect the touch position(? I just random guessing.
SMARTPHONE (please complete the following information):


Device:
iPhone 13 (iOS 17.0)
iPhone 13 mini (iOS 16.5)
iPhone 6s (iOS 15.4.1)


OS

 Android
 iOS



STEPS TO REPRODUCE THE ISSUE

Download the "Hello Cardboard" sample
Open the "VrModeInputSystem" scene
Build to iPhone
Click the close and gear button at the icon position (it should have no response)
Try to click the red box area (please see the screenshot pic) and the button will have response

OR
https://apps.apple.com/hr/app/visymulation-pro/id6477567943
This is actually the app I published and it using Cardboard XR Plugin 1.24.0 have the same problem
Steps to open AR:

Click the "Skip" button on the app introduction page
Click "Disease Information" in the home page
Click the arrow button to continue
Click "Enter AR Simulation"
Click "Ready to start" at the top right corner
Click "Continue simulation without headset" at the top right corner
Click the close and gear button at the icon position (it should have no response)
Try to click the red box area (please see the screenshot pic) and the button will have response

EXPECTED BEHAVIOR
It is expected to click the close and gear button at the icon position will exit vr and go scan qr code correspondingly.
VERSIONS USED
What version of Google Cardboard are you using?
Cardboard XR Plugin 1.24.0
but also tested on 1.25.0 also have the same issue
If you are using Cardboard XR Plugin:


What version of Unity are you using?
2021.3.34f1


Select in which graphics API you can reproduce the bug.

 OpenGL ES2
 OpenGL ES3
 Metal



SCREENSHOTS



The red box area is the moved touch position.

Duplicate issue #417: Close and settings buttons don't respond (Unity cardboard-xr-plugin, iOS/Xcode build)
Created: 2023-06-14T18:42:22Z
When building an app for iOS in Unity using the Cardboard XR Plugin, I encountered issues with the settings/gear button and the close button. These buttons are not responding. The rest of the app functions as expected.
Smartphone

Device: iPhone 12
OS

iOS 16.5



Expected behaviour
I expect the close button to terminate the app, and the gear/settings button to prompt me for camera permission and provide the functionality to scan the Cardboard QR code (the permission message has been set in the build settings).
Versions used
Google Cardboard XR plugin version

Cardboard XR Plugin v1.21.0

Unity version

2021.3

Used Graphics API

Metal

Screenshot

Relevant code for this is in CardboardStartup.cs:
public void Update()
{
    if (Api.IsGearButtonPressed)
    {
        Api.ScanDeviceParams();
    }

    if (Api.IsCloseButtonPressed)
    {
        Application.Quit();
    }

    if (Api.IsTriggerHeldPressed)
    {
        Api.Recenter();
    }

    if (Api.HasNewDeviceParams())
    {
        Api.ReloadDeviceParams();
    }

    Api.UpdateScreenParams();
}

Closing comment (2025-04-15T13:00:05Z): @drooJohnson Is your issue the same as #475 ?
If it is the same issue please feel free to follow up on that ticket and that way maintain this issue as closed.