71.1 Reach Kakao SDK Example
71.1. Reach Kakao SDK Example
71.1.1. Request authentication
This is an example of requesting authentication.
If you choose a way to authenticate at a certain point, you should implement it as shown below.
In accordance with the Privacy Enhancement Policy, the CI values provided by the client SDK have been removed.
For games that require purchase restrictions with CI values, call this API to check the information and get CI through the server API.
Unity
// Request authentication
KGKakaoProfile.RequestAgeVerification((result) =>
{
if (result.isSuccess)
{
// If you limit your purchase with a CI value, use the server API to obtain the CI value.
}
else
{
// Fail
if (result.code == KGResultCode.UnderAgePlayer)
{
// The user is underage. Show the message, call logout API and quit your game.
}
else
{
// If personal authentication is mandatory, call this API again.
}
}
}); |
Android
// Request authentication
KGKakaoProfile.requestAgeVerification(activity, new KGResultCallback<Void>() {
@Override
public void onResult(KGResult<Void> result) {
if (result.isSuccess()) {
// If you limit your purchase with a CI value, use the server API to obtain the CI value.
} else {
// Fail
if (result.getCode() == KGResult.KGResultCode.UDER_AGE_PLAYER) {
// The user is underage. Show the message, call logout API and quit your game.
} else {
// If personal authentication is mandatory, call this API again.
}
}
}
}); |
iOS
// Request authentication
[KGKakaoProfile requestAgeVerificationWithCompletionHandler:^(NSError *error) {
if (IS_SUCCESS(error))
{
// If you limit your purchase with a CI value, use the server API to obtain the CI value.
}
else
{
// Fail
if (error.code == KGErrorUnderAgePlayer)
{
// The user is underage. Show the message, call logout API and quit your game.
}
else
{
// If personal authentication is mandatory, call this API again.
}
}
}];
|
Unreal
71.1.2. Request In-Game Service Status
This API is Deprecated.
This is an example of requesting an in-game service status.
You can take the badge exposure information of WebView before calling InGame WebView and apply it to the UI.
Unity
Android
71.1.3. Exposure In-Game WebView
This API is Deprecated.
This is an example of exposing an in-game webview that exposes recommanded board games.
Unity
Android
You can design the In-game Webview button to match the concept of your game and expose to the desired location.
The design of the button should follow the design guidelines below. If you do not need a design that matches the game's concept, download it from InGameWebViewButtonDesign.zip.
71.1.3.1. Ingame Webview Button Design Guide
Ingame Webview Button
New Badge
Ex)