Triumph Docs
Search
K

Keys and Permissions

Estimated Time: 15 minutes
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
Swift
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
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.
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.
Click the signing and capabilities tab to add a capability to your project.

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 here, and and click Keys under Certificates, Identifiers & Profiles.
Click Identifiers Under Certificates, Indentifiers, and Profiles
Under Keys, click the + button to add an key.
Click the + button to add a new 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.
Your TeamID will be available in the upper right corner of Certificates, Identifiers, and Profiles

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.
Upload your keys under Settings -> Apple Keys in the Triumph dashboard

Next Steps