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. Join us on Dec 8, 2022, between 7 am & 7 pm EST, in the DOTS Dev Blitz Day 2022 - Q&A forum, Discord, and Unity3D Subreddit to learn more about DOTS directly from the Unity Developers.
    Dismiss Notice
  3. Have a look at our Games Focus blog post series which will show what Unity is doing for all game developers – now, next year, and in the future.
    Dismiss Notice

Alternative to SetPublicKey

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

  1. Leinnan


    Dec 20, 2014
    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


    Unity Technologies

    May 2, 2017
    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


    Aug 20, 2010
    JeffDUnity3D likes this.