question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Android 12 native call UI

See original GitHub issue

Bug report

  • ☑ I’ve checked the example to reproduce the issue.

  • Reproduced on:

  • ☑ Android

  • ☐ iOS

Description

Android native call screen does not come when the app is killed status but the headless task is activated and the app wakes up in the background. I can see the console logs in debug mode, but the application does not come to the foreground. Native call screen does not appear.

If the application is in the background or foreground status, there is no problem. This problem I mentioned only happens on android 12 devices and when the application is closed. Previous android versions also working fine.

also checked

if (!RNCallKeep.supportConnectionService()) {
    console.warn("ConnectionService not supported!");
}

if (!RNCallKeep.hasPhoneAccount()) {
    console.warn("No phone account!");
}

above methods are not entering if blocks. So, I assume these conditions are ok.

Steps to Reproduce

standard install instructions

Versions

- Callkeep: 4.3.3
- React Native: 0.63.2
- iOS: -
- Android: 12
- Phone model:  Samsung Galaxy S20+

Logs

Paste here

Issue Analytics

  • State:open
  • Created a year ago
  • Reactions:2
  • Comments:5

github_iconTop GitHub Comments

1reaction
saribalorhancommented, Jul 1, 2022

Thank you @glesperance I’ll try as soon as possible

0reactions
glesperancecommented, Jul 1, 2022

@saribalorhan My issue was related to some initialization problems with Firebase Cloud Messaging. On Android I use FCM to notify the user of an incoming call and – although I did not get to the root cause – RNFirebase seems that it could get initialized in such a way that would cause inconsistencies / race conditions.

To fix this I put all might imports for that library in one file that would then get imported throughout the app, that way I could make sure the library is always properly initialized before getting used.

I did the same for RNCallkeep as well.

Hope that helps!

Read more comments on GitHub >

github_iconTop Results From Across the Web

How do I enable Native Call Recording on One UI 4.1 ...
I have a SM-G781U1 (Cricket CSC: AIO) rooted and unlocked bootloader. Currently running the following ROM (Android 12 One UI 4.1)
Read more >
Behavior changes: Apps targeting Android 12
Learn about changes in Android 12 that will affect apps when they target ... Manually enable SameSite behaviors on the test device by...
Read more >
Call Notifications | Android Open Source Project
Notification style for calls in Android 12 or higher. For devices running Android 12 or higher, to provide a consistent user experience for ......
Read more >
Behavior changes: all apps - Android Developers
Permission package visibility. On devices that run Android 12 or higher, apps that target Android 11 (API level 30) or higher and that...
Read more >
Android 12 - Android Developers
A new system UI with Material You that's expressive, dynamic, and personal. ... Explore new features from rich content insertion, extensions to native...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found