apache / apache/cordova-android

Incoming Call FullScreen Intent On A Cordova Activity

Open
#1,689 2 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

### What is expected to happen?

### What does actually happen?

## Information
We currently have an app that receives an incoming call notification by receiving a full-screen intent. When the intent comes through we are passing the app as an activity to load. When the app has been loaded already by the user, the full-screen intent works as intended and we receive the incoming call. If the app is not loaded by the user or the system restarts the service in the background the UI does not display correctly. The sound notification comes through and we can hear the ringing, but the phone does not wake up or display the incoming call UI screen. We are passing a Cordova activity to the fullscreen intent, but it only works correctly when the app is loaded previously by the user. The debug logs show that JS is loading but the UI doesn’t actually load on the phone during the lock screen, the phone needs to be unlocked manually in order for the UI to display.

### Environment, Platform, Device

### Version information
Device: Samsung S23 Running Android 13
Cordova Version: cordova-lib@12.0.1
IDE: Android Studio

## 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 full-screen intent flow with the Cordova activity on a Samsung S23 running Android 13, both after the app has been opened and after a background service restart. Trace the incoming call notification and observe whether the UI appears while the phone is locked; done means the incoming call screen displays and wakes the device without manual unlocking.

Written by the indexing model from the issue text.

Assessment

Tech stack
android, javascript
Domain
mobile-dev
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
32/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.