Apple Game Center
Authenticate your players using Apple Game Center identifier and register a session for them on the LootLocker backend.
Last updated
Authenticate your players using Apple Game Center identifier and register a session for them on the LootLocker backend.
Last updated
Apple Game Center platform needs to be enabled and configured in the Web Console before it can be used in your game. This also requires you to have a developer account with Apple.
First start by installing the GameKit Unity Plugin found in the Apple Unity Repository.
Then in the Unity Editor menu, go to Edit > Project Settings…, then select Services > Authentication from the navigation menu.
Set ID Providers to Apple Game Center, then select Add.
Enter the Bundle ID from the Apple developer console in the Bundle ID text field, then select Save. The Bundle ID should look like this: "com.lootlocker.hector".
The timestamp input will only be valid for 30 minutes for security reasons.
We do store the Refresh Token for the next time the player starts your game. This Token can be used to Refresh a Session which uses a simpler flow.
Refreshing a Session can be done in order to start the session without going through the entire StartAppleGameCenterSession() flow, if your session token is still valid.
Congratulations - you have now started using LootLocker in your game with Apple Game Center! Next up we suggest you look at our feature set, and decide which ones you want to use in your game.