twilio / twilio-voice-react-native

Other
62 stars 22 forks source link

How to make incoming call notification priority on android. #337

Closed prototypeninja closed 3 months ago

prototypeninja commented 3 months ago

Issue

Pre-submission Checklist

Description

A clear and concise description of what the issue is.

I would like to know how to do so that when I receive an incoming call on Android the notification is displayed in the foreground like on WhatsApp, when the application is in the foreground as background or close

Reproduction Steps

Trying to receive an incoming call on Android, you will see that the notification is hidden and does not appear in priority or foreground like WhatsApp.

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.

Additional Context

Add any other context about the problem here.

afalls-twilio commented 3 months ago

@prototypeninja By design, we have if the application is in the foreground, it will not make the notification highest priority. If you would like the notification to be a priority, it will take a little java work.. (not much..). just modify the channel here from VOICE_CHANNEL_DEFAULT_IMPORTANCE to VOICE_CHANNEL_HIGH_IMPORTANCE.

prototypeninja commented 3 months ago

Thank you so much, that works