Search Unity

Alternative to SetPublicKey

Discussion in 'Unity IAP' started by Leinnan, Apr 13, 2021.

  1. Leinnan

    Leinnan

    Joined:
    Dec 20, 2014
    Posts:
    1
    I need to handle multiple google public keys from one codebase but after upgrading Unity from 2018 to 2020 I've message that:
    Code (CSharp):
    1. Assets\Code\Managers\InAppPurchase\Unity\GooglePlayUnityInAppPurchaseManager.cs(20,13): warning CS0618: 'IGooglePlayConfiguration.SetPublicKey(string)' is obsolete: 'SetPublicKey is deprecated, nothing will be returns and no code will be executed. Will be removed soon.'
    Of course there is no info what I should use instead and why is this removed. Is there any alternative to this? Option to change key during build time would be enough.
     
  2. JeffDUnity3D

    JeffDUnity3D

    Joined:
    May 2, 2017
    Posts:
    14,446
    I'm not familiar with that API call, you might need to check with Google support. Perhaps other users here may be familiar.
     
  3. Baroni

    Baroni

    Joined:
    Aug 20, 2010
    Posts:
    3,258
    JeffDUnity3D likes this.