Search Unity

com.android.vending.BILLING permission added in Google play console

Discussion in 'Unity IAP' started by zoranigic, May 8, 2020.

  1. zoranigic

    zoranigic

    Joined:
    Oct 4, 2019
    Posts:
    16
    Hello, I have an issue similar as in this post https://forum.unity.com/threads/sol...ffers-in-app-purchases-on-google-play.517408/
    Long story short:
    App is build with Unity version 2019.3.0f6, we have iOS and Android version.
    On iOS we need in app purchase and on Android we do not need it.
    IAP service is enabled.

    Problem is that in android app we came up with com.android.vending.BILLING permission, even we do not want it.
    Permission is visible on google play console only, and it is not visible on google play store.

    I must say that there is no such permission in Android merged manifest.

    I'm disabling script component for Android version, and initialise it on Start() method:

    Code (CSharp):
    1.     void Awake()
    2.     {
    3. #if UNITY_IOS
    4.         gameObject.GetComponent<Purchaser>().enabled = true;
    5. #endif
    6. #if UNITY_ANDROID
    7.         gameObject.GetComponent<Purchaser>().enabled = false;
    8. #endif
    9.     }
    10.  
    11.     void Start()
    12.     {
    13.         // If we haven't set up the Unity Purchasing reference
    14.         if (storeController == null)
    15.         {
    16.             // Begin to configure our connection to Purchasing
    17.             InitializePurchasing();
    18.         }
    19.     }
    I'm confused, from where is that permission came? And what can we do to remove it?

    Thanks!
     
  2. SamOYUnity3D

    SamOYUnity3D

    Unity Technologies

    Joined:
    May 12, 2019
    Posts:
    626
    You might need to remove the UnityPurchasing package from the project.