Otras

Learn about advanced setups from our how-tos.

Cómo integrar kits SDK en proyectos para aplicaciones Android

Recomendaciones

When developing projects for Android applications, follow these recommendations:

  1. Set up native authentication via social networks.

Nota
Currently, native authentication is supported by the following social networks:
  • Google
  • Facebook
Use the WebView tool to set up native authentication for other social networks.
  1. Set up deep links to return users to the application after they confirm registration via email.
  2. Customize registration confirmation email.
Nota
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 UMG UI documentation 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.

To set up user redirection to your application after they make a payment via an external browser:

  1. Go to Publisher Account.
  2. Go to your project and click Open in the Pay Station block.
  3. Go to Settings.
  4. Specify the required parameters in the Redirect policy section and click Save.
  5. Go to your UE4 project.
  6. Go to Settings > Project Settings > Plugins > Xsolla Store.
  7. Check the Use Deep Linking box and in the Redirect URL field, enter the return URL (a URL address or a path a user is redirected to after making a payment) specified in the Publisher Account.

To set up returning users to the application after they confirm registration:

  1. Go to Publisher Account.
  2. Go to your project and click Open in the Login block.
  3. Go to Login projects.
  4. Click Open and set up.
  5. Go to the URL block, specify Callback URL (a URL address or a path a user is redirected to after successful authentication, email confirmation, or password reset), and click Save changes.
  6. Go to your UE4 project.
  7. Go to Settings > Project Settings > Platforms > Android > Advanced APK Packaging.
  8. Enter the code below in the Extra Settings for section (/n to separate lines) field. In the code, specify callback URL divided into 3 parts. The example below is for https://example.com/callback.

Copy
Full screen
Small screen
            <intent-filter>
                <data android:scheme="https" />
                <data android:host="example.com" />
                <data android:pathPrefix="/callback" />

                <action android:name="android.intent.action.VIEW" />

                <category android:name="android.intent.category.DEFAULT" />
                <category android:name="android.intent.category.BROWSABLE" />
            </intent-filter>
¿Te ha resultado útil este artículo?
¡Gracias!
¿Hay algo en lo que podamos mejorar? Mensaje
Lo sentimos
Por favor, cuéntanos por qué no te ha resultado útil este artículo. Mensaje
¡Gracias por tu mensaje!
Nos ayudará a mejorar tu experiencia.
Ocultar

Cómo modificar el SDK

The SDK is a flexible solution that you can customize to fit your specific application.

To modify the SDK code downloaded from the Unreal Engine Marketplace, follow these steps:

  1. Open the catalog <UE4 Root>/Engine/Plugins/Marketplace/<Plugin name>, where:
    • <UE4 Root> — path to the root directory where Unreal Engine is installed.
    • <Plugin name> — plugin name.

  1. Move the directory with the plugin files to \/Plugins/, where \ is the path to your UE4 project.
  2. Make changes to the plugin code and restart the project. You need to confirm the rebuild of the plugin module.
  3. Delete the Binaries and Intermediate folders.

You don’t need to do any preliminary steps to make changes to the SDK you downloaded from GitHub.

¿Te ha resultado útil este artículo?
¡Gracias!
¿Hay algo en lo que podamos mejorar? Mensaje
Lo sentimos
Por favor, cuéntanos por qué no te ha resultado útil este artículo. Mensaje
¡Gracias por tu mensaje!
Nos ayudará a mejorar tu experiencia.
Ocultar
Última actualización: 10 de Octubre de 2023

¿Has encontrado una errata u otro error de texto? Selecciona el texto y pulsa Ctrl+Intro.

Informar de un problema
Nos esforzamos por ofrecer contenido de calidad. Tus comentarios nos ayudan a mejorar.
Déjanos tu correo electrónico para que te podamos responder
¡Gracias por tu mensaje!