Big News: Socket Selected for OpenAI's Cybersecurity Grant Program.Details
Socket
Book a DemoSign in
Socket

@maximilien0405/capacitor-android-launcher

Package Overview
Dependencies
Maintainers
1
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@maximilien0405/capacitor-android-launcher

Capacitor plugin to request your app to be the main launcher.

latest
Source
npmnpm
Version
8.0.0
Version published
Maintainers
1
Created
Source

Capacitor Android Launcher Plugin

The Capacitor Android Launcher Plugin allows you to set your app as the default launcher on Android devices.

It also provides immersive mode functionality, which hides all system UI elements (status bar and navigation bar). This can be useful for kiosk apps or even apps designed for children or seniors.

Installation

To install the plugin, run the following commands:

npm install @maximilien0405/capacitor-android-launcher
npx cap sync

And import it just like this:

import { AndroidLauncher } from '@maximilien0405/capacitor-android-launcher';

Usage

Open Launcher Settings

This method opens the settings page where the user can set your app as the default launcher.

await AndroidLauncher.openLauncherSettings();

Start Immersive Mode

This method hides all system UI elements, creating a full-screen experience.

await AndroidLauncher.startImmersiveMode();

Stop Immersive Mode

This method restores the system UI elements.

await AndroidLauncher.stopImmersiveMode();

Check if App is the Default Launcher

This method checks if your app is currently set as the default launcher.

const isLauncher = await AndroidLauncher.isLauncherApp();
console.log(isLauncher); // true or false

Notes

  • When set as the default launcher, users can still exit the app. To prevent this, consider using Android's "pinning" feature in combination with this plugin.

Support

For issues or feature requests, please open an issue on the GitHub repository.

License

This project is licensed under the MIT License. See the LICENSE file for details.

Keywords

capacitor

FAQs

Package last updated on 14 Feb 2026

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts