Triumph Docs
  • 🏆Triumph Tournaments
  • Triumph SDK
    • Install Triumph
    • Import Triumph
    • Presenting Triumph
    • Triumph Lifecycle
    • Triumph RNG
    • Configuration
    • Keys and Permissions
    • Apple Pay
    • Go Live Checklist
    • Test Flight Build
    • App Store Submission
    • Get Paid!
    • Demo Integrations
      • Swift Example
      • Unity Example
    • Common Errors
      • Unity
        • .NET Error
        • Enable Bitcode Error
  • Requirements
    • Apple Business Developer Account
  • Privacy Policy Multi Product
  • Terms of Use
  • Frequently Asked Questions (Regulatory and Legal)
  • Responsible Gaming Policy
  • Cookie Policy
  • Opt Out of Sale or Sharing of Information
Powered by GitBook
On this page
  • Permissions
  • Apple Keys
  • Push Notifications
  • Device Check
  • Team ID
  • Upload Keys to Triumph
  • Next Steps
  1. Triumph SDK

Keys and Permissions

Estimated Time: 15 minutes

PreviousConfigurationNextApple Pay

Last updated 1 year ago

You will need an Apple Developer Account for this step.

Permissions

Apple requires you to add various premissions to your application in order to use ceartin Triumph functionality.

Unity games do this step for free! Move onto the step below.

Navigate to Info.plist, which you can find by clicking on your root project file. You can add a key value pair here by hovering over a row and clicking the plus button

You must add permissions for the following:

  • Device Camera (for uploading profile photos): Use the key NSCameraUsageDescription and value "We will only use your camera when you'd like to upload a profile photo."

  • Photo Library (also for profile photos): Use the key NSPhotoLibraryUsageDescription and value "We will only use your camera library if you choose to upload a profile photo from it"

  • Location Services (for verifying player eligibility): Use the keys NSLocationWhenInUseUsageDescription, NSLocationUsageDescription, NSLocationAlwaysAndWhenInUseUsageDescription and value "We need to ensure you are in one of our operating states for real money functionality."

Now, navigate to the Capabilities section by clicking on the root of your project file and select "Signing & Capabilities." Hit the plus button at the upper right corner and add the Push Notification capability.

Apple Keys

Here you will configure (i) a push notification key and (ii) a device check key. The push notification key lets us notify players' when their tournament results are ready, and the device check key helps us ensure all scores submitted are in fact coming from a real device.

Push Notifications

Log in to your Apple Developer Account , and and click Keys under Certificates, Identifiers & Profiles.

Under Keys, click the + button to add an key.

Create a new Apple Push Notification Service (APNs) key. Keep track of the key ID, and download the key.

Device Check

Now, in the same place, create a DeviceCheck key. Keep track of the key ID, and download the key.

Team ID

Your team ID will be in the upper right corner of the Certificates, Identifiers, & Profiles page. Keep track of your team ID.

Upload Keys to Triumph

Do not mix up your keys, or Triumph will not work in production. Triple check that this step is done correctly!

Go to Settings -> Apple Keys in the Triumph dashboard. Upload each key and type out the KeyID for each entry and hit submit.

Next Steps

Build your project.

here
Click the root of your project and select the Info tab to configure your Info.plist. You must do this before continuing the rest of the integration.
Click Identifiers Under Certificates, Indentifiers, and Profiles
Click the signing and capabilities tab to add a capability to your project.
Click the + button to add a new key
Your TeamID will be available in the upper right corner of Certificates, Identifiers, and Profiles
Upload your keys under Settings -> Apple Keys in the Triumph dashboard