[Closed] get platform name

Hi guys!
IAP plugin is awersome!

Have two questions.

  1. How can i get platform name choosed in Window->Unity IAP->Android->XXX
    can i get it runtime in production with c#?

  2. How can i odfuscate secrets in editor by scripting? I saw solution, but can not find it again.

Hi @Seraphim-Whiteless ,

  1. Yes! You can change it in code. Sorry it’s not in the docs anywhere! You can see an example of it in the Assets/Plugins/UnityPurchasing/Changelog.md path of your project though. Here’s a copy of the example found there:
var builder = ConfigurationBuilder.Instance(StandardPurchasingModule.Instance());
builder.Configure<IAndroidStoreSelection>().androidStore;
  1. Is this what you’re looking for? Unity - Manual: Receipt validation

Hi Erika! Glad to see you again.

  1. Thanx a lot

  2. i wanna make Window > Unity IAP > IAP Receipt Validation Obfuscator with my scripts before build apk.

Hi @Seraphim-Whiteless ,

  1. No problem!

  2. Unfortunately this isn’t a capability we offer at the moment. Can you tell us a little more about your use case and need for it? Also I suggest you add it as an idea on our feedback page: https://feedback.unity3d.com/forums/unity/suggestions?utf8=✓&status=0&category=analytics&view=hottest

when we build game, we make it many times. Becouse have few bundles for different publishers in a few countries.
And for each game every time changing all id’s, bundle names e.t.c.

Our build instruction contains 21 position
including update iap and change obfuscation for new bundle

that’s why i looking for methods for simplify this process.

1 Like

Hi @Seraphim-Whiteless

Thanks very much for this additional information about your use case. This is not a situation we had considered, so we very much appreciate your bringing it to our attention. We will look into adding it to our roadmap!