react-native-webrtc / react-native-webrtc/react-native-incall-manager

[Feature request] Proximity detector api

Open
#70 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Java
Stars
597
Forks
201
Avg merge
2h 42m
Merged PRs (30d)
1

Description

Hello and thanx for this great plugin !

I have an issue caused on my WebRTC negociation if the screen go black with proximity sensor on Android.

My quickfix was to use video mode with ringback and setForceSpeakerphoneOn to false to have a ringback before webrtc negotiation.
As the proximity sensor is enabled when the sound is routed to earpiece anyway since last version. I would need to be able to disable it.

So are you ok if i make a pull request to add this API? (simply make startProximitySensor and stopProximitySensor public and linked to react native)

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Locate the Android proximity-sensor implementation and the React Native bridge exposing public methods. Start by tracing startProximitySensor and stopProximitySensor, then verify that callers can enable and disable the sensor independently and test the resulting API behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
android, java, react-native
Domain
api, mobile
Issue type
Feature
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.