SDK pour Unity / Comment intégrer des SDK dans des projets d'applications Android
  Retour à la documentation

SDK pour Unity

Comment intégrer des SDK dans des projets d’applications Android

Recommandations

When developing projects for Android applications, follow these recommendations:

  1. Set up native authentication via social networks.

Note
Currently, native authentication is supported by the following social networks:
  • Google
  • Facebook
  • WeChat
  • QQ
For other social networks, set up web-based authentication.
  1. Set up deep links to return users to the application after they confirm registration via email.
  2. Customize registration confirmation email.
Note
You can disable sending of registration confirmation emails if your security principles allow it. Contact your Account Manager to disable it, or email csm@xsolla.com.
  1. Choose and set up the most suitable method of working with an in-game store. If you wish, you don’t have to implement the cart feature in your game. Instead, implement the ability to make an in-game purchase by clicking the Buy button.
  2. Set up user redirection to your application after making a payment via an external browser.
  3. Follow the Unity customization instruction to customize the UI for errors and pop-ups. Errors and pop-ups in the integration demo are created for game developers. Therefore, make them more suitable for the end users of your application.
  1. Open your project in Publisher Account.
  2. To set up user redirection to the application after they confirm registration:
    1. In the side menu, сlick Login.
    2. Select the Login project and click Configure.
    3. On the navigation page, go to the Security block and select the OAuth 2.0 section.
    4. Click on the pencil icon in the line of the required OAuth 2.0 client.
    5. Specify an OAuth 2.0 redirect URI (a path in the application the user is redirected to after successful authentication, email confirmation, or password reset). You can specify multiple valid URIs.
    6. Click Save changes.
Note
The URI must match the scheme app://xlogin.<ANDROID_PACKAGE_NAME>, where <ANDROID_PACKAGE_NAME> is the package name of the Android application.
  1. To set up user redirection to your application after they make a payment via an external browser:
    1. Click Pay Station in the side menu.
    2. Go to the Settings tab.
    3. Specify the required parameters in the Redirect policy section.
    4. Click Save.
Note
The return URL (the path in the application the user is redirected to after making a payment) must match the scheme app://xpayment.<ANDROID_PACKAGE_NAME>, where <ANDROID_PACKAGE_NAME> is the package name of the Android application.
Cet article vous a été utile ?
Merci !
Que pouvons-nous améliorer ? Message
Nous sommes désolés de l'apprendre
Dites-nous pourquoi vous n'avez pas trouvé cet article utile. Message
Merci pour votre commentaire !
Nous examinerons votre message et l'utiliserons pour améliorer votre expérience.
Évaluer cette page
Évaluer cette page
Que pouvons-nous améliorer ?

Préfère ne pas répondre

Merci pour votre commentaire !
Dernière mise à jour: 15 Septembre 2023

Faute de frappe ou autre erreur dans le texte ? Sélectionnez le texte concerné et appuyez sur Ctrl+Entée.

Signaler un problème
Nous améliorons continuellement notre contenu grâce à vos commentaires.
Indiquez votre adresse e-mail pour un suivi
Merci pour votre commentaire !