Skip to content

Android: launch main activity when got video call notification when app is closed #841

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
gentlee opened this issue Apr 16, 2025 · 1 comment

Comments

@gentlee
Copy link

gentlee commented Apr 16, 2025

  1. Android app is closed (same with minimized on latest android)
  2. We receive call start notification with react-native-firebase/messaging
  3. We display incoming call with this lib
  4. User answers

Expected result:

we open app (MainActivity) with video call.

Actual result:

native call fullscreen is shown
app Is not opened and no idea how to open it from background notification in latest Android.

Any thoughts?

@gentlee
Copy link
Author

gentlee commented Apr 21, 2025

Here is how I solved it:

This patch adds activityToOpenOnAnswer prop to setup settings (in com.test.app.MainActivity format), which forces opening provided activity when user answers a call. Tested on android 11 and 15 - works perfectly.
Also, it makes additionalPermissions prop optional.

react-native-callkeep+4.3.16.patch

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant