Skip to content
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

How to show full-screen notification for the incoming call on Android when the app is killed? #431

Open
3 tasks done
ilyagru opened this issue Sep 26, 2024 · 2 comments
Open
3 tasks done

Comments

@ilyagru
Copy link

ilyagru commented Sep 26, 2024

Issue

Pre-submission Checklist

  • I have verified that the issue occurs with the latest release and is not marked as a known issue in the CHANGELOG.md.
  • I reviewed the Common Issues and open GitHub issues and verified that this report represents a potentially new issue.
  • I am not sharing any Personally Identifiable Information (PII)
    or sensitive account information (API keys, credentials, etc.) when reporting this issue.

Description

The incoming calls come through in any state on both devices — the issue is with showing the correct type of notification and then launching the app on that notification.

So, the problem is that when the app is killed:

-- on iOS an incoming call notification launches the app, this is what we need, and on launch I’m just checking if there are any pending calls, to show the correct UI screen, it seems working fine. It is similar to WhatsApp behaviour. Is it correct implementation?

-- on Android, an incoming call notification doesn’t open the app and is not a full-screen notification. 1. The question is how to make the incoming call notification be full-screen and launch the app on Android in order to show the correct UI screen?

And another question: 2. do I need to integrate any Push Notifications package to our React Native app to manage Twilio notifications or is it handled completely by the Twilio React Native SDK package?

Reproduction Steps

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

Expected Behavior

A clear and concise description of what you expected to happen.

Actual Behavior

What actually happens.

Reproduction Frequency

Is the reproducibility of the issue deterministic? If not, what percentage of the time does the issue occur? In how many attempts was the issue observed?

Screenshots

If applicable, add screenshots to help explain your problem.

Software and Device Information

Please complete the following information.

  • Device: [e.g. iPhone 12, Pixel 3]
  • OS: [e.g. iOS 16, Android API Level 31]
  • React version: [e.g. 18.1.0]
  • React Native version: [e.g. 0.70.9]
  • Node version: [e.g. 16.18.1]
  • npm or yarn version: [e.g. 8.19.2, 1.22.19]

Additional Context

Add any other context about the problem here.

@greenraze13
Copy link

@ilyagru Hi , Have you found the solution for full-screen notification in android when phone is locked?

@afalls-twilio
Copy link
Collaborator

afalls-twilio commented Oct 15, 2024

  1. On Android, we are using the system provided "Call Notification". I believe if you tap on the notification (outside of the buttons), it will launch the app. You can read more about the notification here. You can change this behavior but it requires you to make changes to make changes to this SDK and be familiar with Java.

  2. No, don't integrate the ReactNative Push Notifications package to your app, it may break your ability to receive incoming calls.

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

3 participants