Search Unity

Question Question about Accelerometer access

Discussion in 'Scripting' started by wangzizhen7, Feb 23, 2024.

  1. wangzizhen7

    wangzizhen7

    Joined:
    Feb 23, 2024
    Posts:
    4
    Hi, I am working on a game which is supposed to be published on Android platform. However, we receive the report that our app access the Accelerometer sensor before we get the permission. We have checked the log that upload_2024-2-23_18-11-43.png the app indeed access the sensor data. However, we have checked the code many times to ensure there's no function call such as Input.acceleration or something related to this sensor. It seems like the engine itself try to access the sensor. And the log shows that the access happens once the game starts. Is there any build-in components or well-known third-party plugins that may access the sensor by themselves?

    P.S: Our Unity version is 2022.3.16f1
     
    Last edited: Feb 23, 2024
  2. Luke3671

    Luke3671

    Joined:
    Jul 6, 2014
    Posts:
    56
  3. wangzizhen7

    wangzizhen7

    Joined:
    Feb 23, 2024
    Posts:
    4