- PLUG SDK 2.x, 3.x versions are no longer supported.
As a proven SDK, which has been used in many mobile games, this lets you simply and quickly add community features in your game.
You should apply to our partner program to apply the PLUG SDK to your app. Please fill out the form after downloads and send it via email.
- Downloads of partnership registration form
- Email address of a partnership contact: dl_naverplugpartner@navercorp.com
You can manage the PLUG SDK content on the Settings page from your computer after the partnership process is completed.
If you have any questions regarding working this SDK, please visit our issue page for Android.
Add permissions and activities in the AndroidManifest.xml file.
Copy and paste the code below to add permission to access the PLUG SDK.
<uses-permission android:name="android.permission.INTERNET"/>
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/>
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE"/>
Copy and paste the code below to add permission to record videos.
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/> <!-- Required -->
<uses-permission android:name="android.permission.RECORD_AUDIO"/> <!-- Optional -->
Copy and paste the code below to add activities for NAVER Login and PLUG SDK.
<activity
android:name="com.nhn.android.naverlogin.ui.OAuthLoginActivity"
android:screenOrientation="sensorLandscape"
android:theme="@android:style/Theme.Translucent.NoTitleBar"/>
<activity
android:name="com.nhn.android.naverlogin.ui.OAuthLoginInAppBrowserActivity"
android:screenOrientation="sensorLandscape"
android:label="OAuth2.0 In-app"/>
Add the NeoIdInAppBrowserActivity activity setting to support languages other than Korean.
<activity
android:name="com.naver.glink.android.sdk.login.neoid.NeoIdInAppBrowserActivity"
android:configChanges="keyboardHidden|screenSize|orientation"
android:label="NeoId In-app"
android:screenOrientation="sensor"/>
<activity android:name="com.naver.glink.android.sdk.login.neoid.PlugSchemeActivity">
<intent-filter>
<action android:name="android.intent.action.VIEW"/>
<category android:name="android.intent.category.DEFAULT"/>
<category android:name="android.intent.category.BROWSABLE"/>
<data android:scheme="naverplug"/>
</intent-filter>
</activity>
Initializing the PLUG SDK will vary depending on the supported language.
Configure the initialization information below and call the init() method to initialize the PLUG SDK that supports Korean only.
- ClientId: Client ID you received after registering your application in NAVER Login Developers
- ClientSecret: Client secret you received after registering your application in NAVER Login Developers
- cafeId: Cafe ID you received after creating your Cafe in NAVER Cafe
The init() method initializes the PLUG SDK.
final int cafeId = 28290504;
final String clientId = "197CymaStozo7X5r2qR5";
final String clientSecret = "evCgKH1kJL";
Glink.init(this, clientId, clientSecret, cafeId);
Configure the initialization information below and call the initGlobal() method to initialize the PLUG SDK that supports languages other than Korean.
- consumerKey: Community Key you received after creating your community
- consumerSecretKey: Community Scret Key you received after creating your community
- cummunityNo: Community No received after creating your community
- loungeNo: Lounge No received after creating your lounge
The initGlobal() method initializes the PLUG SDK that supports languages other than Korean.
final String consumerKey = "PLUGTESTKEY";
final String consumerSecretKey = "PLUGTESTSECRET";
final int cummunityNo = 1;
final int loungeNo = 58;
Glink.initGlobal(this, "PLUGTESTKEY", "PLUGTESTSECRET", cummunityNo, loungeNo);
How to check your community ID and consumer key
Visit http://g.cafe.naver.com/plugsample/manage/consumer and log in to your community using the account with manager privileges.
You can find the information in Settings > Communities > In-App Community Settings as shown in the image below.
Start the PLUG SDK after initialization is completed.
The startHome() method starts the PLUG SDK with the Home tab selected.
/**
* Start with the Home tab.
*/
Glink.startHome(activity)
Name | Description |
---|---|
guide/ | Folder for PLUG SDK documentation |
lib/ | Folder for Android PLUG SDK library |
sample/ | Folder for Eclipse and Android Studio sample files |
NOTICE | License file |
NAVER-COPYING | NAVER license file |
CHANGELOG | PLUG SDK change log |
README.md | Readme file |
You should add the following libraries to your project and build together with the PLUG SDK in order to use the PLUG SDK. The libraries are included in the sample project.
- Android Support Library v4
- Android Support Custom Tabs
- Android Support RecyclerView
- NAVER Login
- NAVER Volleyer (version 2.0.1)
- Android Volley (version 1.0.0)
- Google Gson (version 2.8.0)
- Glide (version 3.7.0)
- Otto (version 1.3.8)
- hmac (version 2.3.1)
The intellectual property right of the PLUG SDK is owned by NAVER Corporation.
NAVER Cafe SDK for Android
Copyright 2015 NAVER Corp.
All rights reserved.
Unauthorized use, modification and redistribution of this software are strongly prohibited.