LINE iOS SDK V5 Objective-C starter
This is a sample application for LINE iOS SDK V5 that is written in Objective-C. It demonstrates the following functionality:
NATIVE_APP
. You will need the account's Channel ID to set up the SDK.pod install
from the LineSDKStarterObjC
folder.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: