+1 vote

Hi! I need to implement IAP and am in trouble. The documentation on ios services mentions a singleton "InAppStore" that doesn't want to show up.

https://docs.godotengine.org/en/stable/tutorials/platform/services_for_ios.html

It also mentions all of this is implemented in platform/iphone/in_app_store.mm but that is not in github source code but it is in the otherwise outdated gitlab repository.

Should I build my own Godot or my own iOS export template , or maybe wait for Godot 4?
I did try to setup Scons and hit my head against the wall with the different versions of python installed in muy computer etc...
Thanks for any help!

Godot version 3.2.3
in Engine by (13 points)

It seems so, the trick is to build the ios templates as indicated in
https://docs.godotengine.org/en/stable/getting_started/workflow/export/exporting_for_ios.html
making sure the build includes the necessary Storekit module.
Then replace the .a file in the XCode Project.
The Godot code should be safe to run without the singleton in the editor, but can only be tested in the iOS devices.

1 Answer

+2 votes

Have you tried these?
https://github.com/godotengine/godot-ios-plugins/releases
AFAIK they are pre-compiled plugins.

by (176 points)

That looks handy. Thanks for the tip!

Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read Frequently asked questions and How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to [email protected] with your username.