Initialize library

To initialize the library:

  1. Add the following lines to your Android project source code:

Copy
Full screen
Small screen
val loginConfig = LoginConfig.OauthBuilder()
                .setProjectId("login-project-id")
                .setOauthClientId("oauth2-client-id")
                .build()

XLogin.init(applicationContext, loginConfig)

  1. In the project source code, specify the Callback URL from your Publisher Account. To do this, add the Callback URL divided into parts to the strings.xml file. The example below is for app://xsollalogin.

Copy
Full screen
Small screen
<string name="xsolla_login_redirect_scheme">app</string>
<string name="xsolla_login_redirect_host">xsollalogin</string>

Your progress
Thank you for your feedback!

Continue reading

Last updated: September 8, 2021

Found a typo or other text error? Select the text and press Ctrl+Enter.

Report a problem
We always review our content. Your feedback helps us improve it.
Provide an email so we can follow up
Thank you for your feedback!