Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

Question Cannot Edit Android Manifest

Discussion in 'Android' started by danielrconrad, Jun 13, 2023.

  1. danielrconrad

    danielrconrad

    Joined:
    Apr 19, 2021
    Posts:
    15
    Basically I've tried multiple different ways to edit the android Manifest specifically so that I can enable the line <uses-permission android:name="com.google.android.gms.permission.AD_ID"/> which google console keeps telling me I should ad to the manifest. I have tried putting the line at different points in the xml code but it doesn't seem to affect it. I have enabled Custom Main Manifest and used that to edit the xml file. I tried disabling it to see if it automatically might add that line to the manifest since most of it was autogenerated. Is there something I've misunderstood or missed?

    The exact warning google gives me when I upload my bundle is :

    Warning


    Your declaration on Play Console says that your app uses advertising ID. Your manifest file doesn't include the com.google.android.gms.permission.AD_ID permission.

    If you don't include this permission in your manifest file, your advertising identifier will be zeroed out. This may break your advertising and analytics use cases, and cause loss of revenue. Learn more

    You turned off release blocking errors. Update your advertising ID declaration to turn these errors back on.
     
  2. danielrconrad

    danielrconrad

    Joined:
    Apr 19, 2021
    Posts:
    15