# Open a LINE MINI App in an external browser

In October 2025, LINE MINI Apps will be available in a external 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: