iOS
#
IntroductionIf you are using a non-supported or a custom engine, we also provide the Antidote SDK library so you can directly access its validation and watermark methods.
#
ConfigurationTo integrate the SDK for Custom Engines in your project:
- Download the latest version of Antidote SDK for Custom iOS Engines.
- Unzip the downloaded file and go to "custom engine" folder.
- You will find the
antidote_sdk.framework
library and headers. Include them to your project.
#
InitialisationExample:
#
ValidationExample:
#
TouchesExample:
#
Watermarksnote
Only ticker mode is currently supported. More modes will be added shortly!
Example:
#
EventsExample:
All game events consist of an action
and an event name
, where action
can be one of the following:
Action | Description |
---|---|
start | mark the start of a long-running event (e.g. boss_battle) |
end | mark the end of a long-running event (e.g. boss_battle) |
once | emit a once-off event (e.g. collected_powerup) |
#
User InformationTo access the Antidote User ID of the user opening the game, you can use the following function:
The returned string is the user ID.
#
Apple ReviewersThe Antidote SDK secures your game unauthorised access when players start it directly. When you submit your app to TestFlight, an Apple reviewer will need to be able to access your game without using the Antidote app. To do this, you will need to add login credentials to your TestFlight submission.
You can generate these login credentials by logging into your account at app.antidote.gg:
- Click on
Games
. - Click on your iOS game.

- Click on
Security
. - If this is the first time you are configuring credentials on your game you will see the following:

- Click on
Renew Credentials
and follow the prompts.

caution
Save the password somewhere secure as it will not be shown again once the modal is closed. If you do forget the password, you can generate new credentials on this view.