- Home /
Where to find all IAP store names?
From the documentations, I could find:
GooglePlay.Name
AppleAppStore.Name
MacAppStore.Name
WinRT.Name
of which I couldn't find anything in the documentations. Where are those classes listed?
Answer by nicholasr · Jun 28, 2016 at 06:41 PM
@hexagonius Yeah - there is no one class containing all the constants currently.
We write the Store plugins (Google, Apple, etc) separately, uniting them under a "Purchasing Module" http://docs.unity3d.com/ScriptReference/Purchasing.Extension.IPurchasingModule.html , which behaves like a smart Factory (the design pattern). The StandardPurchasingModule class is the preferred way to access these stores today. This module currently doesn't have an API which lists the names.
Also note there is an AmazonApps.Name.
That being said (answering your Question), what were you thinking about doing with the IAP store name list? Was it curiosity or is there a feature you're thinking about? Maybe there's a way to get done what you want, without an extension to the core IAP API.
thanks for the summary,
I actually was just curious because I am uncomfortable with incomplete information about new things. since the store name is a parameter for the function, an enum containing all store names would be nice. But that's all, thx
$$anonymous$$akes sense! You're welcome.
Yeah we're cranking away on new stores too.
To "get a feel" you may wish to survey the FAQ - it covers the "doors and corners" people are encountering when using Unity IAP, and may give a broader view: forum.unity3d.com/threads/unity-iap-faqs.388069/
Answer by Novack · Nov 02, 2020 at 02:27 PM
This is rather old, but one of the few places where the topic is mentioned. These classes (just used as constant holders) are undocumented, and Im entirely on the dark regarding which one to use.
In the examples MacAppStore is mostly used, but Im working for iOS, so Im guessing AppleAppStore is the right one? I found the second one by mere luck.
Are they both valid? Is one an obsolete version of the other? How can I find what are the expected options?