跳轉至

條款

條款是明確規範服務提供者與使用者之間權利、義務和責任的文件。提供應用程式服務時,必須向使用者告知使用條款、隱私權政策等內容,或取得使用者同意。


Hive SDK的配置功能支援註冊和管理使用者啟動應用程式時需要同意或拒絕的條款。條款相關功能如下。

  • 再次查看條款
  • 刪除條款同意紀錄
  • COPPA合規
  • GDPR合規
  • 確認法定監護人同意狀態

有關條款註冊的詳細資訊,請參閱控制台指南 > 配置 > 條款。

審查條款

Hive SDK在初始化時根據使用者連線的IP位址判斷所在國家,並選擇顯示Hive控制台中預先註冊的對應國家條款。使用者進入應用程式後,無論是否顯示對應國家的條款,都應提供讓所有使用者在應用程式內查看條款和隱私權政策的功能。例如,提供再次查看條款按鈕。

實作此功能前,請先在Hive控制台註冊條款。請在使用者點擊應用程式內的再次查看條款按鈕時呼叫AuthV4.showTerms()。Hive SDK從連線IP所對應國家的條款組合(M)中,自動選擇符合使用者裝置語言的條款。如果該組合沒有對應裝置語言的條款,則顯示組合預設語言的條款。遊戲語言設定setGameLanguage不影響再次查看條款時的顯示語言。

要依裝置語言顯示條款,請在Hive控制台的條款組合(M)中註冊所有支援語言的條款內容(S)。詳細資訊請參閱條款組合(M) > 再次查看設定。


顯示使用條款的程式碼範例如下。

API 參考: Unity®

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

API 參考: 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 參考: 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 參考: Java

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

API 參考: Swift

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

API 參考: 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
        }
}));

刪除以裝置為基礎的條款同意紀錄

使用以裝置為基礎的條款時,使用者首次啟動應用程式時的條款同意紀錄會保留在裝置上。呼叫AuthV4.resetAgreement可刪除此紀錄。

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 重置協議]
#include "HiveAuthV4.h"

FHiveAuthV4::ResetAgreement();


使用以裝置為基礎的條款時,刪除帳戶後重新啟動應用程式,裝置上仍保留已刪除帳戶的同意資訊,因此不會顯示條款同意彈出視窗。要在刪除帳戶並重新啟動應用程式時透過初始化Hive SDK再次顯示視窗,請依以下順序實作。

  1. 呼叫AuthV4.resetAgreement刪除儲存的條款同意資訊。
  2. 呼叫AuthV4.setup初始化Hive SDK。
  3. Hive SDK在初始化過程中自動再次顯示條款同意彈出視窗。

以帳戶為基礎的條款不支援刪除同意紀錄。要選擇以裝置或帳戶為基礎的條款,請修改基本設定中的agreementDetermineBase。

Coppa 合規性

在美國及其領土發行的應用程式若以未滿13歲的使用者為對象,必須遵守Children's Online Privacy Protection Act(COPPA)。COPPA是保護未滿13歲兒童個人資料的美國法律。如果使用者未滿13歲,應用程式必須符合包括以下範例在內的全部COPPA要求。

  • 僅提供訪客登入作為驗證方式
  • 禁止顯示部分使用者追蹤廣告
  • 禁止傳送推播通知
  • 禁止應用程式內聊天
  • 禁止在應用程式客服中儲存諮詢內容
  • 禁止在特定條件下蒐集個人資料

請確認COPPA的全部要求以確保合規。詳細資訊請參閱COPPA。

遵循COPPA時,未滿13歲的使用者無法在PC環境中進入應用程式。COPPA要求這些使用者以訪客帳戶登入,但Hive SDK不支援PC環境中的訪客登入。

檢查是否未滿 13 歲

Hive SDK提供AuthV4.getAgeGateU13方法,用於查詢使用者是否未滿13歲。請根據此值符合COPPA要求,例如僅提供訪客登入或不顯示部分廣告。請在使用者於條款彈出視窗中選擇是否未滿13歲後呼叫此方法。如果使用者未滿13歲,方法傳回true。

例如,值為true時,應用程式必須僅提供訪客登入。請停用帳戶連結按鈕或將其從UI移除,避免提供與Google、Facebook等其他IdP帳戶的連結。

使用Adiz或Adkit會自動僅顯示符合COPPA要求的應用程式內廣告。如果不使用Adiz或Adkit,請自行實作程式碼,僅顯示符合要求的應用程式內廣告。

當ageGateU13為true時,Hive SDK的行為如下。

平台 描述
Android * 結束彈出視窗不顯示更多遊戲按鈕。
* 不接收遠端推播通知,推播API不運作。
iOS * 呼叫AuthV4.setup()和Auth.initialize()時不顯示要求推播權限的彈出視窗。
* 推播API不運作。


API 參考: AuthV4.getAgeGateU13

using hive;    

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

bool bAgeGateU13 = FHiveAuthV4::GetAgeGateU13();

API 參考: AuthV4 ::getAgeGateU13

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

bool ageGateU13 = AuthV4::getAgeGateU13();

API 參考: AuthV4.getAgeGateU13

import com.hive.AuthV4;

val ageGateU13 = AuthV4.getAgeGateU13()

API 參考: AuthV4.INSTANCE.getAgeGateU13

import com.hive.AuthV4;    

boolean ageGateU13 = AuthV4.INSTANCE.getAgeGateU13();

API 參考: AuthV4Interface.getAgeGateU13

import HIVEService    

Bool ageGateU13 = AuthV4Interface.getAgeGateU13()

API 參考: HIVEAuthV4 getAgeGateU13

#import <HIVEService/HIVEService-Swift.h>    

BOOL ageGateU13 = [HIVEAuthV4 getAgeGateU13];

GDPR 合規性

服務提供者在歐洲設有營業場所,或從歐洲以外向歐洲的資料主體提供商品或服務時,必須遵守General Data Protection Regulation(GDPR)。

請在Hive控制台中設定顯示GDPR條款。使用者同意條款後,請呼叫Configuration.getAgeGateU16Agree()方法。

有關GDPR合規的詳細資訊,請參閱GDPR官方網站。

GDPR條款協議詢問

Hive SDK提供Configuration.getAgeGateU16Agree()方法,用於查詢GDPR適用國家中未滿16歲的使用者是否同意GDPR條款。請在使用者於條款彈出視窗中選擇同意狀態後呼叫。傳回值為true表示已同意,為false表示未同意。

使用第三方程式庫時,若需根據使用者是否未滿16歲來限制應用程式功能,請使用Configuration.getAgeGateU16Agree()。例如,透過此方法設定不向兒童使用者顯示個人化廣告。

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];

如果應用程式使用法定監護人同意條款,請呼叫Configuration.getLegalGuardianConsentAgree()查詢使用者的法定監護人同意狀態。傳回值為true表示已同意。

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];