Init IOS SDK

Gotadi SDK Integration Guide for iOS

Import Gotadi SDK into an iOS Project

Add the Library Using Swift Package Manager

Use the SDK link above to add the library to your project via Swift Package Manager.

Example Code to Initialize IOSGotadiSDK

  • Import IOSGotadiSDK

  • Initialize IOSGotadiSDK in viewDidLoad for performance optimization.

  • Init SDK and set up the partner environment with the following parameters:

    • env: Deployment environment [uat | prod]

    • partnername: Partner name, e.g., "vib"

    • language: Display language ["vi" | "en"]

    • token: JWT token obtained after authentication via Gotadi's API

    • theme: primary, secondary

Last updated