Name: line-sdk-starter-ios-v2
Owner: LINE
Description: A starter application that demonstrates how to use LINE SDK 4.x.x for iOS.
Created: 2017-01-23 06:02:16.0
Updated: 2018-05-11 01:58:04.0
Pushed: 2018-04-24 15:13:02.0
Size: 4161
Language: Objective-C
GitHub Committers
User | Most Recent Commit | # Commits |
---|
Other Committers
User | Most Recent Commit | # Commits |
---|
LINE iOS SDK V2 starter
This is a sample application for LINE iOS SDK V2. It demonstrates the following functionality:
It includes a sample in Objective-C and a sample in Swift.
NATIVE_APP
. You will need the account's Channel ID to set up the SDK.pod install
from the LineSDKStarterObjC
folder if you want to use the Objective-C sample or from the LineSDKStarterSwift
folder if you want to use the Swift sample.Info.plist
to your channel's Channel ID and then build the application using Xcode.
The Login with LINE button will use the LINE app to log in and the Browser Login button will open a Web Login screen inside of a Safari Web View and prompt the user to log in using their LINE account's email and password.
After logging in, the user's profile information and access token will be displayed on the screen in addition to four buttons:
getProfileWithCompletion
method. The profile information retrieved from the API will appear in a different view.
This information should be the same as the profile information that is initially displayed to the user after they log into this starter application.verifyTokenWithCompletion
method. An alert pop-up will display informing the user if their token is valid or not.refreshTokenWithCompletion
method. This will update the access token that is displayed on the starter app's main screen.logoutWithCompletion
method. This will revoke the access token and return the user to the “Select Login” page.For detailed documentation, please refer to the following links: