Scan your whole stack
From OX Research Newsroom
Are you using react-native-audio-observer?
Find out what’s in your code.
Scan your apps free in minutes (opens in a new tab)Latest version: v0.1.0
react-native-audio-observer was last scanned on 28 Nov 2026 at version 0.1.0. Risk score 0 of 100. No malicious behavior was detected.
| Version | Published | Status |
|---|---|---|
| 0.1.0 LATEST | 28 Nov 2026 | No rules fired |
| 0.0.0-stage | 28 Nov 2026 | Not shown |
Findings for v0.1.0. The score is a capped sum of the weights of the rules that fired — not CVSS, not exploitability, and not a probability. It is not comparable across packages with different scan coverage.
The score describes 0.1.0; other versions have their own rules, not their own score.
The publisher’s own README, as collected from the registry.
Observe-only call and audio events for React Native (call state, audio route, other audio on iOS, media playback on Android) on iOS and Android
LIMITATIONS.md first.| Library | Main job | Changes the audio session | Extra setup |
|---|---|---|---|
| react-native-audio-observer | Observe calls, audio route and other apps' audio | No | None |
| react-native-audio-api | Play and process audio (Web Audio API) | Yes | Might be needed |
| react-native-incall-manager | Audio during your app's own calls (WebRTC, VoIP) | Yes | Might be needed |
| react-native-nitro-call-detector | Detect phone calls, VoIP opt-in | No | Nitro Modules |
Based on some research on other audio libraries, November 2026.
minSdkVersion 24. Some events need a newer API level (see Events).Info.plist keys.npm install react-native-audio-observer
cd ios && pod install
| Event | Values | iOS | Android |
|---|---|---|---|
call |
ringing, connected, ended |
✓ | API 31+ |
audioRoute |
{ routes }, each one bluetooth, wired, speaker or unknown |
✓ | API 33+ |
otherAudio |
started, stopped (audio from another app) |
✓ | – |
mediaPlayback |
started, stopped (any media, your app's included) |
– | API 26+ |
import AudioObserver, { addListener } from 'react-native-audio-observer';
// 1. Add the listener first.
const subscription = addListener('audioRoute', ({ routes }) => {
console.log('audioRoute changed', routes);
});
// 2. Then read the initial state.
const routes = await AudioObserver.getAudioRoutesAsync();
// Later
subscription.remove();
In a component, subscribe in useEffect and remove the subscription on unmount:
useEffect(() => {
let useInitial = true;
// 1. Add the listener first.
const subscription = addListener('audioRoute', ({ routes }) => {
useInitial = false; // an event is newer than the initial read
setRoutes(routes);
});
// 2. Then read the initial state.
const readInitialRoutes = async () => {
try {
const routes = await AudioObserver.getAudioRoutesAsync();
if (useInitial) setRoutes(routes);
} catch {
// ERR_UNSUPPORTED below Android API 33
}
};
readInitialRoutes();
// 3. Remove it on unmount.
return () => subscription.remove();
}, []);
Calling remove() more than once is safe.
Not every event exists on every platform and API level (see LIMITATIONS.md), so check isAvailableAsync() before addListener. If the listener can't receive events (the event isn't available, or the system refused to start observing it), the module logs a warning. To handle the error yourself instead, for example to send it to Sentry, pass onError: addListener('call', onCall, { onError: (e) => Sentry.captureException(e) }).
Order matters. Events are emitted only when the state changes, never for the initial state. To miss nothing, add the listener first and read the initial state after it (for example
isInCallAsync()orgetAudioRoutesAsync()). Reading it beforeaddListenerleaves a gap where a change is lost.
Never interrupts playback. The module only observes: it never requests audio focus on Android and never activates the audio session on iOS, so it never pauses or ducks any app.
See LIMITATIONS.md for platform limits.
| Function | Returns | Platform |
|---|---|---|
addListener(event, listener, options?) |
{ remove() } |
both |
isAvailableAsync(event) |
Promise<boolean> |
both |
isInCallAsync() |
Promise<boolean> |
both |
getAudioRoutesAsync() |
Promise<AudioRoute[]> |
both |
isOtherAudioPlayingAsync() |
Promise<boolean> |
iOS |
isMediaPlaybackActiveAsync() |
Promise<boolean> |
Android |
The read functions return the current state once, with or without a listener. They reject with code ERR_UNSUPPORTED when the event isn't available on the platform or Android API level.
The event types are exported too: CallEvent, AudioRouteEvent, AudioRoute, OtherAudioEvent, MediaPlaybackEvent.
The package collects no data. Everything is detected on the device, and nothing is sent anywhere. It never reads phone numbers or audio content, so it needs no privacy manifest of its own.
If your app sends these events to a server, that is data your app collects. Declare it in your app's privacy manifest and in the Google Play Data safety form.
See CONTRIBUTING.md.
MIT
Made with create-react-native-library
Find threats in your stack.
OX Radar can check high-priority threats, like critical package CVEs, against your context.
Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.
The probe returned only these fields for this server — auth requirement, protocol and tool list weren’t observed, so they’re not shown (never guessed).
The publisher’s own links, as the registry reports them. These are not sources for the assessment on this page.