Noctua Platform

Customer Service

Noctua as publisher have contents that may need to be delivered to users, like Announcements, Rewards, Social Media, or even Customer Service.


Implementation to show Customer Service

Although the Customer Service feature already included in the User Center, you can trigger Customer Service feature from your game directly. Here's how to show Customer Service content in your game,

using com.noctuagames.sdk;
using Cysharp.Threading.Tasks;
using UnityEngine;

public class AuthenticationManager : MonoBehaviour
{
    private void Awake()
    {
        StartCoroutine(Authenticate().ToCoroutine());
    }

    private async UniTask Authenticate()
    {
        try
        {
            await Noctua.Platform.Content.ShowCustomerService();
            Debug.Log("Customer Service shown");
        } catch (Exception e) {
            if (e is NoctuaException noctuaEx)
            {
                Debug.Log("NoctuaException: " + noctuaEx.ErrorCode + " : " + noctuaEx.Message);
                outputConsole.text = "NoctuaException: " + noctuaEx.ErrorCode + " : " + noctuaEx.Message;
            } else {
                Debug.Log("Exception: " + e);
                outputConsole.text = "Exception: " + e;
            }
        }
    }
}

Best Practices

You can put the Customer Service button in your in-game launcher and direct it to trigger the Noctua.Platform.Content.ShowCustomerService() method.

Note

Error Handling: Always check for errors in the callback and handle them appropriately. See NoctuaException for more details.

    Previous
    Showing Social Media content