Hello,
I am using codeless IAP.
Let say when game was started without internet connection. In this case IAP automatically would not initialize. I would like to trigger initialization if internet was enable later. And also how to check if IAP was initialized first place?
Thank you,
Dmitry
For this, you will want to use scripted IAP, not Codeless. Then you can explicitly call Initialize whenever you want. To check if it’s initialized, you would want to use a singleton pattern as the sample IAP project here demonstrates Sample IAP Project
Actually you do not need to use scripted IAP, just need one extra layer.
My solution for using Codeless is to:
- Disable auto init.
- Created similar scene to shop, check on that page is internet is available
- If available load shop scene that will init IAP when first Codeless button get active.
I think that Codeless should not try to init if internet is not available.