Configure
App configuration
One of the necessary conditions for setting up the authorization is to add the P101XPAppConfig, P101XPClientId values to Info.plist.
Please, ask your release manager for those parameters.
<key>P101XPAppConfig</key>
<string>APPNAME</string>
<key>P101XPClientId</key>
<string>your_client_id</string>
Where APPNAME - name of the game.
For APPNAME use the name in lowercase.
For example: use some_game_name not Some_Game_Name.
Setting up authorization providers
Users can authorize via the 101XP platform and social networks (Facebook, Vkontakte, Odnoklassniki) or use a guest account.
Setting up checking token
Setting up automatic authorization
To turn on\off the automatic authorization you need to add P101XPAutologinEnabled value into Info.plist of your project. Turned on by default (since SDK version 1.22.0).
<key>P101XPAutologinEnabled</key>
<true/>
If you need to turn off the automatic authorization, then set the value P101XPAutologinEnabled = false in Info.plist.
Setting up device token
A constant token is used instead of a refresh token, to turn on\off the device token you need to add P101XPDeviceTokenEnabled value into Info.plist of your project.
<key>P101XPDeviceTokenEnabled</key>
<false/>
If you need to turn on the device token, then set the value P101XPDeviceTokenEnabled = true in info.plist.
Setting up EULA window
To show the EULA window you need to add P101XPLicenseAgreementEnabled into the Info.plist. By default, the value is true.
<key>P101XPLicenseAgreementEnabled</key>
<true/>
To change the license agreement link, please, add this parameter to your Info.plist.
<key>P101XPLicenseAgreementUrl</key>
<string>https://mobile.101xp.com/pages/privacy-policy-terms-of-service</string>
If you need to turn the EULA window off, then set P101XPLicenseAgreementEnabled = false in the Info.plist.
Setting up a warning about linking a social network
The warning is shown to a user every 24h if they use a guest account. To turn it off you need to set P101XPGuestTimeoutEnabled to false in Info.plist. Turned on by default.
<key>P101XPGuestTimeoutEnabled</key>
<false/>
Setting up disabling rotation for authorization window
To fix orientation in a horizontal position or vertical position, use the corresponding option. All options are false by default.
<key>P101XPScreenLockHorizontal</key>
<false/>
<key>P101XPScreenLockVertical</key>
<false/>