apache / cordova-android

Apache Cordova Android
https://cordova.apache.org/
Apache License 2.0
3.59k stars 1.52k forks source link

Incoming Call FullScreen Intent On A Cordova Activity #1689

Open KyleKernanRepo opened 4 months ago

KyleKernanRepo commented 4 months ago

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

parveshneedhoo commented 2 months ago

@KyleKernanRepo I'm experiencing the same issue. Have you found a solution for it or a workaround (besides opening the app beforehand)?