# News: Articles for #LINE SDK

LINE SDK v4.x 相關內容移除

如同 2019 年 9 月 13 日 新聞所述,所有 LINE SDK v4.x 相關內容已自本網站移除,而原本導向這些內容的鏈結,已改為導向下列頁面:

最新 ID token verification endpoint 正式上線

當開發者的後端伺服器收到來自 LINE Login v2.1 或 LINE SDK 的 ID token,開發者需要驗證此 ID token 是否可靠。

過去開發者必須使用 JWT library,或自行撰寫用以譯解和驗證的程式碼。

在最新 ID token verification endpoint 正式上線後,開發者只須將 HTTP request 發送至 verification endpoint,便可確認 ID token 是否可靠。

如欲了解如何驗證 ID token,請查看 Transfer ID token to back-end server

LINE SDK v4.x end-of-life on December 12th, 2019

December 12th, 2019 marks the end-of-life date for LINE SDK v4.0 for Android and LINE SDK v4.1 for iOS (from hereon collectively called LINE SDK v4.x). On that date, we'll remove from this site the following things:

# Why we're doing this

To ensure a consistent, secure, up-to-date experience for LINE users, our partners' apps and services should use the latest version of our technology. We already marked LINE SDK v4.x as deprecated some time ago, but continued to offer documentation and download links as a courtesy to partners who couldn't upgrade on short notice. Now we're taking the next logical step: declaring LINE SDK v4.x end-of-life and removing all references from our site.

# Upgrading to a new SDK version

What you need to do to upgrade depends on what version you're currently using.

From To Notes
LINE SDK v4.x for iOS Objective-C LINE SDK v5.2 for iOS Swift The old and new versions use different programming languages, which makes migrating a big task. We hope the migration instructions in Upgrading the SDK will make it easier.
LINE SDK v4.x for Android LINE SDK v5.1 for Android There are minor differences between the old and new version, particularly with relation to how login works. The page Integrating LINE Login with your Android app explains how to integrate the latest version.
LINE SDK v3.x for iOS Objective-C LINE SDK v5.2 for iOS Swift There are major differences between the old and new version, meaning you'll have to redo your integration from scratch. See Integrating LINE Login with your iOS app for instructions.
LINE SDK v3.x for Android LINE SDK v5.1 for Android There are major differences between the old and new version, meaning you'll have to redo your integration from scratch. See Integrating LINE Login with your Android app for instructions.

LINE SDK for Flutter released

We've released a new LINE SDK for Flutter. This SDK is a Flutter plugin that lets you access the functions of LINE SDK for iOS and LINE SDK for Android in your Flutter app with Dart. For details, see these pages:

The LINE SDK for Flutter documentation is only available in English, for now.

LINE SDK 5.1.0 for iOS Swift released

We released the LINE SDK 5.1.0 for iOS Swift. Get the SDK from our GitHub repository.

Changes:

  • Some model types support the Encodable protocol for easier serialization.
  • JSON conversion for Objective-C model wrapper classes is supported for future features.
  • You can get the raw ID token value for server verification.
  • Swift 5.0 and Xcode 10.2 are supported.

We won't stop looking for ways to make your coding life easier. Expect more improvements in future versions!

LINE SDK 1.0.0 for Unity released

We released the LINE SDK 1.0.0 for Unity.

The LINE SDK for Unity is a wrapper for our existing LINE SDKs for iOS and Android. This means you can now use the functionality offered by those SDKs in your Unity games.

Read our guide to learn more. In addition to the guide, we'll soon release a full reference for the methods available in the SDK.

LINE SDK 4.0.10 for Android released

The LINE SDK 4.0.10 for Android has been released. You can download the SDK from the following page.

Changes:

  • Fixed an issue where an activity is not found when authenticating with LINE Login after LINE is invalidated on the device.

We will continue to provide improvements so that you can code more easily.

LINE SDK 5.0.0 released

The LINE SDKs 5.0.0 for Android, iOS Swift, and iOS Objective-C have been released. For installation and usage instructions, see the following guides:

# Changes

# LINE Login v2.1 and Social API v2.1 are supported

You can set permissions to be granted to your app as scopes when users log in to your app with LINE Login. By setting scopes, you can get ID tokens when you get access tokens. Those tokens contain user information according to the scopes you set with the login request.

You can display an option to add your bot as a friend to users logging in to your app. You can get the friendship status between users and your bot with login responses and the Social API.

# New SDK version in Swift

Developed in Swift, the LINE SDK for iOS Swift provides a modern way of implementing LINE APIs. The LINE SDK 5.0.0 for iOS Objective-C is the last version of our Objective-C SDK.

# Open-source SDK

The LINE SDK for Android and iOS Swift are open-sourced. Visit the following repositories to check the provided code and samples.

# Detailed reference

Now you can access detailed reference based on the source code. For more information, see the following references:

LINE SDK for iOS 4.1.1 released

The LINE SDK for iOS version 4.1.1 has been released. You can download the SDK from the following page.

Changes:

  • Fixed an issue that the LineSDKLogin object has the access token in cache even after logout.

We will continue to provide improvements so that developers can code more easily.

LINE SDK for Android 4.0.8 released

The LINE SDK for Android version 4.0.8 has been released. You can download the SDK from the following page.

Changes:

  • Fixed an infinite loading indicator problem that occurs if the user attempts to log in before LINE has been opened for the first time.

We will continue to provide improvements so that you can code more easily.

LINE SDK for Android 4.0.7 released

The LINE SDK for Android version 4.0.7 has been released. You can download the SDK from the following page.

Changes:

  • Fixed a crash that occurs if the user exits LINE using the home button and then opens the SDK app before LINE finishes the authentication process.

We will continue to provide improvements so that you can code more easily.

LINE SDK for iOS 4.1.0 released

The LINE SDK for iOS version 4.1.0 has been released. You can download the SDK from the following page.

Changes:

  • The web login process now uses a Safari View Controller instead of an external browser.

We will continue to provide improvements so that developers can code more easily.

LINE SDK for Android 4.0.6 released

The LINE SDK for Android version 4.0.6 has been released. For more information on downloading the LINE SDK, see below.

Changes:

  • Fixed an infinite loading indicator problem that occurs when the user presses the back button while LINE's passcode prompt is on screen.

We will continue to provide improvements so that you can code more easily.

LINE SDK for Android 4.0.5 released

The LINE SDK for Android version 4.0.5 has been released. For more information on downloading the LINE SDK, see below.

Changes:

  • Fixed an issue where a runtime error occurs upon calling startActivityForActivity with a login intent when using appcompat version 25.0.0 or higher.

We will continue to provide improvements so that you can code more easily.

LINE SDK for Android 4.0.4 released

The LINE SDK for Android version 4.0.4 has been released. For more information on download the LINE SDK, see below.

Changes:

  • Made a minor change to the SDK's authentication logic to fix a problem where onActivityResult does not get executed during app-to-app login.
  • Fixed a known issue in 4.0.2 where onActivityResult returns a result of "CANCEL" on the first time that a user logs into an application using app-to-app login.

We will continue to provide improvements so that you can code more easily.

LINE SDK for Android 4.0.2 released

The LINE SDK for Android version 4.0.2 has been released. You can download the SDK from the following page.

Changes:

  • Fixed an issue where browser login fails with an INTERNAL_ERROR on Android 4.x devices.

Known issues:

  • On Android 4.x devices, onActivityResult returns a result of "CANCEL" the first time that a user logs into an application using the app-to-app login. However, the user will be able to successfully log in from their second attempt. This issue is caused by a problem in LINE and will be resolved in a future update.

We will continue to provide improvements so that you can code more easily.

LINE SDK for iOS CocoaPod released

We have released the LINE SDK for iOS on CocoaPods. You can now download the LINE SDK for iOS using CocoaPods for your Objective-C and Swift projects.

For information on how to download the SDK with CocoaPods, see the link below.

We will continue to provide improvements so that developers can code more easily.

LINE SDK for iOS 4.0.1 released

The LINE SDK for iOS version 4.0.1 has been released. You can download the SDK from the following page.

Changes:

  • Fixed an issue which causes an authentication error when using Web Login.

We will continue to provide improvements so that developers can code more easily.

New versions of Web Login and the LINE SDK released

New versions of Web Login, LINE SDK for Android, and LINE SDK for iOS have been released. Details of each release are outlined below.

# Web Login v2

Key changes:

  • Endpoint URLs contain "v2" instead of "v1"
  • userId is returned in get user profile requests. mid is no longer returned in the response.
  • scope is returned with the default value of p for permission to get user profile information
  • error and state parameters are returned in error responses for authorization

For more information, see the updated documentation below.

You can also use the LINE Login starter application to help you get started with Web Login.

Note: Web Login v1 will be discontinued in January 2018. If you are using Web Login v1, please migrate to the Web Login v2 before that time.

# LINE SDK for Android 4.0.0

Key changes:

  • Implements the Auto Login feature using Chrome custom tabs, instead of app-to-app authorization
  • Automatically gets user profile information at login
  • Has a method to verify the access token
  • Has a method to refresh the access token
  • Has a method to log the user out

For more detailed information on how to use the LINE SDK for Android, see the updated documentation below.

Download the LINE SDK for Android

# LINE SDK for iOS 4.0.0

Key changes:

  • Automatically gets user profile information at login
  • Has a method to verify the access token
  • Has a method to refresh the access token
  • Has a method to log the user out

For more detailed information on how to use the LINE SDK for iOS, see the updated documentation below.

Download the LINE SDK for iOS

Note: The reference documentation for the LINE SDK for Android and iOS are currently only available in English.

We will continue to provide improvements so that developers can code more easily.

LINE SDK for iOS 3.2.2 released

The LINE SDK for iOS has been updated to version 3.2.2. You can download it from the LINE SDK archives on the following page:

Download LINE SDK

Changes:

  • Fixed an issue with bitcode.

We will continue to provide improvements so that developers can code more easily.

LINE SDK for Android 3.1.21 released

The LINE SDK for Android has been updated to version 3.1.21. You can download it from the LINE SDK archives on the following page:

Resources - Download LINE SDK

Changes:

  • Updated to prevent build warnings.

We will continue to provide improvements so that developers can code more easily.

LINE SDK for Android 3.1.20 released

The LINE SDK for Android has been updated to version 3.1.20. You can download it from the LINE SDK archives on the following page:

Resources - Download LINE SDK

Changes:

  • Updated build with Java 1.7 for compatibility.

We will continue to provide improvements so that developers can code more easily.

The LINE SDK for iOS 3.2.1 released and the LINE starter application revised

The LINE SDK for iOS has been updated to version 3.2.1. You can download it from the LINE SDK archives on the following page:

Download LINE SDK

Changes

  • LineAdapter+Login.framework and LineAdapterUI.framework merged to LineAdapter.framework.
  • Definition changed for swift.

In addition, the LINE starter application has been revised to make compatibility with this version of SDK. You can clone or download it from the below GitHub repository.

https://github.com/line/line-sdk-starter-ios

We will continue to provide improvements so that developers can code more easily.

LINE SDK for Android version 3.1.19 released

The LINE SDK for Android has been updated to version 3.1.19. You can download it from the LINE SDK archives on the following page:

Resources - Download LINE SDK

Changes:

  • Fixed login error issue when user attempts to login again

We will continue to provide improvements so that developers can code more easily.

LINE SDK for Android version 3.1.18 released

The LINE SDK for Android has been updated to version 3.1.18. You can download it from the LINE SDK archives on the following page:

Resources - Download LINE SDK

Changes:

  • Added support for 64-bit architecture
  • Added the locale property to the login method
  • Fixed some bugs

We will continue to provide improvements so that developers can code more easily.

LINE SDK for iOS version 3.1.17 released

The LINE SDK for iOS has been updated to version 3.1.17. You can download it from the LINE SDK archives on the following page:

Resources - Download LINE SDK

Changes:

  • Fixed an issue where return error message is not correct when a token refresh request fails.
  • Fixed an issue with iOS 9 where authorization process is not canceled when the cancel button is tapped.

We will continue to provide improvements so that developers can code more easily.

LINE SDK for iOS version 3.1.15 released

The LINE SDK for iOS has been updated to version 3.1.15. You can download it from the LINE SDK archives on the following page:
Changes:
  • Fixed app-to-app authentication error on iOS9.
We will continue to provide improvements so that developers can code more easily.

LINE SDK for iOS version 3.1.14 released

The LINE SDK for iOS has been updated to version 3.1.14. You can download it from the LINE SDK archives on the following page:

Resources - Download LINE SDK

Changes:

  • Fixed error when building for submission on Xcode 7.

We will continue to provide improvements so that developers can code more easily.

Settings for iOS 9 or later

For developers developing applications with the iOS 9 SDK, please use the following settings to ensure that your application works with iOS 9.

iOS - Settings for iOS 9 or later

We will continue to provide improvements so that developers can code more easily.

LINE SDK for iOS version 3.1.13 released

The LINE SDK for iOS has been updated to version 3.1.13. You can download it from the LINE SDK archives on the following page:
Changes:
  • The "refreshWithResultBlock" method returns an error if the access token cannot be refreshed.
  • Minor bug fixes.
We will continue to provide improvements so that developers can code more easily.

LINE SDK for iOS version 3.1.12 released

The LINE SDK for iOS has been updated to version 3.1.12. You can download it from the LINE SDK archives on the following page:
Changes:
  • Added new endpoints for the LINE Platform.
  • Added “clearLocalLoginInfo" method to remove login information from local cache.
  • Added function allowing users to switch accounts from the WebView login.
  • Added the capability to retrieve SDK version on the LineAdaptor.
We will continue to provide improvements so that developers can code more easily.

LINE SDK for Android version 3.1.16 released

The LINE SDK for Android has been updated to version 3.1.16. You can download it from the LINE SDK archives on the following page:

Resources - Download LINE SDK

Changes:

  • In this latest version of the LINE SDK for Android, you can create a sub class of WebLoginActivity to override the onResume method from this version. When doing this, you need to register the sub class with "jp.line.sdk.WebLoginActivityClass" metadata on the AndroidManifest.xml file.

We will continue to provide improvements so that developers can code more easily.

LINE SDK for iOS version 3.1.10 released

The LINE SDK for iOS has been updated to version 3.1.10. You can download it from the LINE SDK archives on the following page:

Resources - Download LINE SDK

Changes:

  • Modified to specify "kSecAttrAccessible: kSecAttrAccessibleAfterFirstUnlock" when storing to KeyChain.
  • Added the expiresDate property to the LineApiClient.

We will continue to provide improvements so that developers can code more easily.

LINE SDK for iOS version 3.1.9 released

The LINE SDK for iOS has been updated to version 3.1.9. You can download it from the LINE SDK archives on the following page:

Resources - Download LINE SDK

Changes:

  • Can no longer be used with iOS 4.9 and lower.
  • Removed the JSONKit dependency; NSJSONSerialization will be used instead.
  • Fixed the bug where the SDK crashes when the refresh token is null.

We received a lot of feedback about the SDK crashing when using JSONKit in a 64-bit environment so we decided to remove the JSONKit dependency.

We will continue to provide improvements so that developers can code more easily.

LINE SDK for Android version 3.1.13 released

The LINE SDK for Android has been updated to version 3.1.13. You can download it from the following page:

Resources - Download LINE SDK

In this version, not only does the LINE SDK support .so files for ARM architecture, it also supports other architectures. It includes some bug fixes as well.

We will continue to provide improvements so that developers can code more easily.