With Single Sign On (SSO), existing Skillz users can log in with your app without having to enter their username and password. This Single Sign On feature is optional and will require you to configure your application in order for it to work.
Single Sign On will only work under iOS 8 or later, but implementing it does not stop your game from supporting iOS 7.
Single Sign On is already built into our Android SDK and will not require any additional configuration.
Step 1: Enable Associated Domains
Start by going to Apple’s iOS DevCenter and logging in.
On the right side of the screen, under iOS Developer Program, choose the Certificates, Identifiers, and Profiles button.
On the next page, choose identifiers. This brings you to all of your App ID’s. Edit the app ID for your game and enable Associated Domains.
Important: when making changes to your App ID settings, you’ll need to update all your application’s provisioning profiles.
Important: take note of your app ID and Prefix at the top of the dialog; you will need it in Step 3.
After adding a certificate, the effected profiles in the Provisioning Profiles section will be marked as invalid. Hit edit and generate to recreate the provisioning profile.
You will also need to update your XCode project settings with the newly regenerated provisioning profile. Later, when you create the binary for distribution, you will need to ensure that it uses the correct profile.
Step 2: Configure Associated Domains in XCode
Once you have an updated provisioning profile in your Xcode project your next step will be to configure the Associated Domain in your Xcode project.
Open your project configuration by double clicking your project root, then select your project’s target and click Capabilities.
If you see a “fix this issue” button in the Associated Domain section, press the button and XCode will make sure the app is configured properly.
webcredentials:skillz.com to the list of urls under Associated Domains.
Step 3: Contact Skillz Support to enable SSO
The last step to enable Single Sign On is to contact us at email@example.com and provide us with your game’s bundle ID and prefix (mentioned above in Step 1) so that we can enable the feature for your game!
Congratulations, Single Sign On should now be configured! You can confirm it is working by doing the following:
- If needed, log out of your game.
- Download Diamond Strike, or another Skillz game, from the App Store.
- Log in to Skillz in the game from Step 2.
- Load up your game; you should now be logged back in.
Since Diamond Strike will be running in Production, not Sandbox, you will have to use a Production build of your game to test this. Keep in mind that Production builds have to be uploaded in the Developer Wizard before they will work.