페이지 이동경로
  • Docs>
  • Kakao Sync

Kakao Sync

Get consent to desired terms

IMPORTANT

This API is only allowed for the service that adopted Kakao Sync. To see the advantages of Kakao Sync, refer to Concept > Kakao Sync. Before implementing this API, read Design terms and policies.

This document contains how to get consent to desired terms using the Legacy SDK for Android and iOS. We recommend using the latest SDK for Android and iOS.

If you develop with other languages, see the following development guides:

Legacy Android

Declare parameters and set it to service_terms with the tags for the terms that you want to get consent from users. service_terms should be a string that includes all terms separated by comma(,).

You can pass parameters when calling Kakao Login. If successful, the Consent screen that only includes the designated terms is prompted during the login process.

    import com.kakao.auth.StringSet;

     // Declare parameters to use for the login request
    Map<String, String> parameters = new HashMap<>();

    // Add service_terms in a string format that includes all terms separated by ‘,’
    // ex) "tag1,tag2"
    parameters.put(StringSet.service_terms, "tag1,tag2");
    Session.getCurrentSession().open(AuthType.KAKAO_TALK, LoginActivity.this, parameters);

Legacy iOS

Declare parameters and set it to serviceTermsTags with the tags for the terms that you want to get consent from users. serviceTermsTags should be a string that includes all terms separated by comma(,).

You can pass parameters when calling Kakao Login. If successful, the Consent screen that only includes the designated terms is prompted to users during the login process.

    // Declare parameters to use for login request 
    var parameters: [String: String] = [:]

    // Add 'serviceTermsTags' in a string format that includes all terms separated by ‘,’
    // ex) "tag1,tag2"
    parameters[KOSessionExtraServiceTermsParameterKey] = <#serviceTermsTags#>

    KOSession.shared()?.open(completionHandler: { (error) in
        // Login callback 
        <#code#>
    }, parameters: parameters)

See more

Legacy Android

Legacy iOS