API reference Development guidelines Quickstart Discover LINE MINI App Design LINE MINI App Develop LINE MINI App - Getting started with development
- Implementing a custom action button
- Sending service messages
- Configuring Custom Path
- Skipping the channel consent process
- Handling payments
- Creating permanent links
- Add a shortcut to your LINE MINI App to the home screen of the user's device
- Managing LINE MINI App settings on LINE Developers Console
- Open a LINE MINI App in an external browser
- Implementing web apps in operation as LINE MINI Apps
- Performance guidelines
Submit LINE MINI App Service LINE MINI App Tools
API reference Development guidelines Quickstart Discover LINE MINI App Design LINE MINI App Develop LINE MINI App - Getting started with development
- Implementing a custom action button
- Sending service messages
- Configuring Custom Path
- Skipping the channel consent process
- Handling payments
- Creating permanent links
- Add a shortcut to your LINE MINI App to the home screen of the user's device
- Managing LINE MINI App settings on LINE Developers Console
- Open a LINE MINI App in an external browser
- Implementing web apps in operation as LINE MINI Apps
- Performance guidelines
Submit LINE MINI App Service LINE MINI App Tools
# Open a LINE MINI App in an external browser
For more information, see the news from April 2, 2025, In October 2025, all LINE MINI App users will be able to use the service in a web browser.
When developing a LINE MINI App, make sure that the LINE MINI App service is also available when users access the endpoint URL with an external browser.
When using the LINE MINI App with an external browser, note the following:
# Explicitly handle logging in for services that require LINE Login
When opening the LINE MINI App in an external browser, unlike the LIFF browser, simply executing the liff.init()
method will not execute the LINE Login.
Therefore, if LINE Login is required to use your service, explicitly execute LINE Login using one of the following methods:
# 1. Automatic execution of LINE Login at initialization
By specifying true
in the withLoginOnExternalBrowser
property of the config
object of the liff.init()
method, the liff.login()
method can be executed automatically when the LIFF app is initialized in external browsers.
Example:
liff
.init({
liffId: "1234567890-AbcdEfgh", // Use own liffId
withLoginOnExternalBrowser: true, // Enable automatic login process
})
.then(() => {
// Start to use liff's api
});
# 2. Execute LINE Login when a user isn't logged in
If the user isn't logged in with LINE Login and the service requires it, you can just execute LINE Login.
Check the user's login status using the liff.isLoggedIn()
method, and if the user isn't logged in, execute the liff.login()
method.
Example:
if (!liff.isLoggedIn()) {
liff.login();
}
For more information, see To use LINE Login in an external browser in the LIFF documentation.
# Direct users to the LINE app when using features that aren't available in an external browser
If your LINE MINI App needs to use a feature that isn't available in external browsers, a user needs to open the LINE MINI App on the LINE app.
Features that can't be used with external browsers and aren't guaranteed to work are as follows:
When opening your LINE MINI App that uses these features in an external browser, it's recommended to place a link to the LINE MINI App on the screen with the text "To use this feature, you must open the LINE MINI App in LINE app".
Note that the methods liff.getContext()
and liff.isInClient()
can be used to get the environment of the LINE MINI App. We recommend to use these methods if you want to change the display according to the environment of the LINE MINI App.
# Assume that non-LINE users will open the LINE MINI App
If non-LINE users, such as overseas travelers, are expected to use your LINE MINI App, we recommend that they can use the service without LINE Login in an external browser.
The LIFF API properties and methods that can be used without LINE Login in an external browser are as follows: