apache / apache/cordova-android

Home screen menu opens when doing `cordova run android`

Open
#1,775 3 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
3.8k
Forks
1.6k
Avg merge
16h 18m
Merged PRs (30d)
11

Description

# Bug Report

## Problem

When doing a `cordova run android`, the menu from the home screen will appear before the app is starting.
This menu would normally appear when the user would do a long press on the home screen. It seems like the cli is doing a long press on the home screen before launching the app:

I observe this problem since over 1 year. This will happen on any Android version.

Is this maybe already fixed in corodva-android 14.0.0?

### What is expected to happen?

The app should start without opening the home screen menu.

### What does actually happen?

The home screen menu is opened before the app starts.

## Information

### Command or Code
`cordova run android`

### Environment, Platform, Device
- MacBookPro 13" 2019
- ZSH
- Android Emulator

### Version information
- macOS 15.2
- cordova-android 13.0.0
- cordova 12.0.0 (cordova-lib@12.0.2)
- Android SDK Command-line Tools: 17.0
- Android Emulator 35.3.11
- Android SDK Platform-Tools: 35.0.2

## Checklist

- [x] I searched for existing GitHub issues
- [x] I updated all Cordova tooling to most recent version
- [x] I included all the necessary information above

Contributor guide

Open the contributing guide

Research direction

Start by reproducing the behavior with `cordova run android` on the Android Emulator described in the issue. Trace the launch path from that command and verify that the app starts without opening the home screen menu; the issue provides no specific source file or test to begin with.

Written by the indexing model from the issue text.

Assessment

Tech stack
android, javascript
Domain
cli, mobile
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.