Android Launcher
Kevin Batdorf
NativePHP^4.5iOS15.0+Android30+
Turn your NativePHP app into an Android home screen launcher — list installed apps, open them, and handle multi-display layouts.
Android only. iOS reports every function as unsupported (no home screen to replace). Requires Android 11+ (API 30).
Features
Launcher::apps()— returns all installed apps withlabel,package,activity, andiconpathLauncher::open($package, $display, $activity)— launch any installed app (optionally on a specific display)Launcher::isDefaultHome()— check if your app is the current default launcherLauncher::currentHome()— returns the current default home app packageLauncher::openHomeSettings()— navigates the user to Settings → Default apps → Home app to switch launchersHomeRequested($displayId)event — fired when Android requests the home screen (great for multi-display)IsHomeScreentrait — apply to your root component so the back button stays at the root instead of minimizingQUERY_ALL_PACKAGESpermission — declared in the manifest; accepted by Google Play for launcher use cases- JavaScript API —
resources/js/Launcher.jsexport for Inertia/SPA apps
Installation
composer require kevinbatdorf/nativephp-launcher
php artisan native:plugin:register kevinbatdorf/nativephp-launcher
After install, your app will appear in Android's home-app picker. Call Launcher::openHomeSettings() to take the user directly there.