Newer Version Available

This content describes an older version of this product. View Latest

Integrate Gamification Mobile iOS SDK into Loyalty Management Mobile iOS SDK

Import the Gamification Mobile iOS SDK into the existing Loyalty Management Mobile iOS SDK by adding it as an external dependency.
Available in: all editions that have Loyalty Management enabled

  1. Open the LoyaltyMobileSDK-iOS project in Xcode.
  2. Go to File | Swift Packages | Add Package Dependency.
  3. Enter the repository URL: https://github.com/loyaltysampleapp/GamificationMobileSDK-iOS, or if you’ve cloned the repository, click Add Local, and then select the local GamificationMobileSDK-iOS folder.
  4. Select a version, and click Add Package and on the confirmation window, click Add Package.
  5. To import the GamificationMobileSDK-iOS module into your Swift file, open the swift file where you want to use GamificationMobileSDK-iOS, and to the first line of code, add:
    import GamificationMobileSDK-iOS
You can now use the classes, structures, and protocols in the GamificationMobileSDK-iOS module to extend and manage the gamification features in the MyNTORewards sample app.