Skip to content

Terms

Terms and conditions specify the rights, obligations, and responsibilities of the service provider and the user. When providing app services, you must notify users of the terms of use and privacy policy or obtain their consent.


Hive SDK Provisioning lets you register and manage the terms that users agree to or decline when starting the app. It provides the following features:

  • Review terms
  • Delete terms consent history
  • COPPA compliance
  • GDPR compliance
  • Verify legal guardian consent

For details on registering terms, refer to Hive Console Guide > Provisioning > Terms.

Review terms

During initialization, Hive SDK determines the user's country from their IP address and displays the country-specific terms registered in Hive Console. After users enter the app, provide a feature that lets all users review the terms and privacy policy, regardless of whether country-specific terms appear. For example, provide a Review terms button.

To implement this feature, register the terms in Hive Console. Call AuthV4.showTerms() when the user clicks the Review terms button. Hive SDK selects terms in the user's device language from the Terms Combination (M) registered for the country determined by the access IP address. If that combination has no terms in the device language, it displays the terms in the combination's default language. The game language setting, setGameLanguage, does not affect the display language of the terms review screen.

To display terms in the user's device language, register Terms Content (S) for every supported language in the Terms Combination (M) in Hive Console. For details, refer to Terms Combination (M) > View Again Settings.


The following example shows how to display the terms of service.

API Reference: Unity®

using hive;    
    AuthV4.showTerms((ResultAPI result) => {    
        if (result.isSuccess()) {    
            // API call success    
        }    
});

API Reference: C++

#include <HIVE_SDK_Plugin/HIVE_CPP.h>    
    using namespace std;    
    using namespace hive;    
    AuthV4::showTerms([=](ResultAPI const & result) {    
        if (result.isSuccess()) {    
            // API call success    
        }    
});

API Reference: Kotlin

import com.hive.AuthV4;    
    import com.hive.ResultAPI;
    AuthV4.showTerms(object : AuthV4.AuthV4ShowTermsListener {    
        override fun onAuthV4ShowTerms(result: ResultAPI) {    
            if (result.isSuccess) {    
                // API call success    
            }    
        }    
})

API Reference: Java

import com.hive.AuthV4;    
    import com.hive.ResultAPI;    
    AuthV4.INSTANCE.showTerms(result -> {    
        if (result.isSuccess()) {    
            // API call success    
        }    
});

API Reference: Swift

import HIVEService    
    AuthV4Interface.showTerms() { result in    
        if result.isSuccess() {    
            // API call success    
        }    
}

API Reference: Objective-C

#import <HIVEService/HIVEService-Swift.h>    
    [HIVEAuthV4 showTerms:^(HIVEResultAPI *result) {     
        if ([result isSuccess]) {    
            // API call success    
        }    
}];
#include "HiveAuthV4.h"

FHiveAuthV4::ShowTerms(FHiveAuthV4OnShowTermsDelegate::CreateLambda([this](const FHiveResultAPI& Result) {
        if (Result.IsSuccess()) {
                // Call successful
        }
}));

Delete device-based terms consent history

With device-based terms, the device retains the user's consent from the first app launch. Call AuthV4.resetAgreement to delete this history.

using hive;

AuthV4.resetAgreement();
#include <HIVE_SDK_Plugin/HIVE_CPP.h>
using namespace hive;

AuthV4::resetAgreement()
import com.hive.AuthV4;

AuthV4.resetAgreement()
import com.hive.AuthV4;

AuthV4.INSTANCE.resetAgreement();
import HIVEService

AuthV4Interface.resetAgreement()
#import <HIVEService/HIVEService-Swift.h>

[AuthV4Interface resetAgreement]
#include "HiveAuthV4.h"

FHiveAuthV4::ResetAgreement();


With device-based terms, consent information remains on the device after account deletion, so the consent popup does not appear when the app restarts. To display it again when initializing Hive SDK after account deletion, implement the following sequence:

  1. Call AuthV4.resetAgreement to delete the saved consent information.
  2. Call AuthV4.setup to initialize Hive SDK.
  3. Hive SDK automatically displays the consent popup again during initialization.

Account-based terms do not support deleting consent history. To select device-based or account-based terms, modify agreementDetermineBase in Basic configuration.

COPPA compliance

Apps released in the United States and its territories that target users under 13 must comply with the Children's Online Privacy Protection Act (COPPA). COPPA is a U.S. law that protects the personal information of children under 13. For users under 13, the app must meet all COPPA requirements, including the following examples:

  • Guest login as the only authentication method
  • No display of certain user-tracking ads
  • No push notifications
  • No in-app chat
  • No storage of inquiries in the app's customer support service
  • No collection of personal information under certain conditions

Review all COPPA requirements to ensure compliance. For details, refer to COPPA.

When complying with COPPA, users under 13 cannot enter the app on PC. COPPA requires these users to log in with guest accounts, but Hive SDK does not support guest login on PC.

Check for under 13

Hive SDK provides AuthV4.getAgeGateU13 to check whether a user is under 13. Use this value to meet COPPA requirements, such as providing only guest login or hiding certain ads. Call the method after the user selects whether they are under 13 in the terms popup. It returns true if the user is under 13.

For example, if the value is true, the app must provide only guest login. Disable account linking buttons or remove them from the UI to prevent linking with other IdP accounts, such as Google or Facebook accounts.

Adiz or Adkit automatically displays only in-app ads that meet COPPA requirements. If you do not use Adiz or Adkit, implement code to display only compliant in-app ads.

When ageGateU13 is true, Hive SDK behaves as follows:

Platform Description
Android * Does not display the More Games button in the exit popup.
* Does not receive remote push notifications, and push APIs do not work.
iOS * Does not display the push permission popup when calling AuthV4.setup() and Auth.initialize().
* Push APIs do not work.


API Reference: AuthV4.getAgeGateU13

using hive;    

Boolean ageGateU13 = AuthV4.getAgeGateU13();
#include "HiveAuthV4.h"

bool bAgeGateU13 = FHiveAuthV4::GetAgeGateU13();

API Reference: AuthV4 ::getAgeGateU13

#include <HIVE_SDK_Plugin/HIVE_CPP.h>    
    using namespace std;    
    using namespace hive;    

bool ageGateU13 = AuthV4::getAgeGateU13();

API Reference: AuthV4.getAgeGateU13

import com.hive.AuthV4;

val ageGateU13 = AuthV4.getAgeGateU13()

API Reference: AuthV4.INSTANCE.getAgeGateU13

import com.hive.AuthV4;    

boolean ageGateU13 = AuthV4.INSTANCE.getAgeGateU13();

API Reference: AuthV4Interface.getAgeGateU13

import HIVEService    

Bool ageGateU13 = AuthV4Interface.getAgeGateU13()

API Reference: HIVEAuthV4 getAgeGateU13

#import <HIVEService/HIVEService-Swift.h>    

BOOL ageGateU13 = [HIVEAuthV4 getAgeGateU13];

GDPR compliance

Service providers must comply with the General Data Protection Regulation (GDPR) if they have an establishment in Europe or provide goods or services to data subjects in Europe from outside Europe.

In Hive Console, configure the display of GDPR terms. After the user agrees to the terms, call Configuration.getAgeGateU16Agree().

For details on GDPR compliance, refer to the GDPR website.

GDPR terms agreement inquiry

Hive SDK provides Configuration.getAgeGateU16Agree() to check whether a user under 16 in a country subject to GDPR has agreed to the GDPR terms. Call it after the user selects their consent status in the terms popup. A return value of true indicates consent; false indicates no consent.

When using third-party libraries, use Configuration.getAgeGateU16Agree() to restrict app features based on whether the user is under 16. For example, use it to prevent personalized ads from appearing to children.

using hive;

Boolean ageGateU16 = Configuration.getAgeGateU16Agree();
#include <HIVE_SDK_Plugin/HIVE_CPP.h>
using namespace std;
using namespace hive;

bool ageGateU16Agree = Configuration::getAgeGateU16Agree();
import com.hive.Configuration;

val ageGateU16Agree = Configuration.ageGateU16Agree()
import com.hive.Configuration;

boolean ageGateU16Agree = Configuration.INSTANCE.getAgeGateU16Agree();
import HIVEService

var ageGateU16Agree: Bool = ConfigurationInterface.getAgeGateU16Agree()
#import <HIVEService/HIVEService-Swift.h>

BOOL ageGateU16 = [HIVEConfiguration getAgeGateU16Agree];

If the app uses legal guardian consent terms, call Configuration.getLegalGuardianConsentAgree() to check the user's legal guardian consent status. A return value of true indicates consent.

using hive;    

Boolean legalGuardianConsentAgree = Configuration.getLegalGuardianConsentAgree();
#include <HIVE_SDK_Plugin/HIVE_CPP.h>    
using namespace std;    
using namespace hive;    

bool ageGateU16Agree = Configuration::getLegalGuardianConsentAgree();
import com.hive.Configuration    

val legalGuardianConsentAgree = Configuration.legalGuardianConsentAgree()
import com.hive.Configuration;    

boolean legalGuardianConsentAgree = Configuration.INSTANCE.getLegalGuardianConsentAgree();
import HIVEService    

var legalGuardianConsentAgree: Bool = ConfigurationInterface.getLegalGuardianConsentAgree()
#import <HIVEService/HIVEService-Swift.h>    

BOOL legalGuardianConsentAgree = [HIVEConfiguration getLegalGuardianConsentAgree];