Skip to content

fix(android): background recording with screen off - #49

Merged
End2EndAI merged 1 commit into
mainfrom
feature/background-recording-android
Mar 29, 2026
Merged

fix(android): background recording with screen off#49
End2EndAI merged 1 commit into
mainfrom
feature/background-recording-android

Conversation

@End2EndAI

Copy link
Copy Markdown
Owner

Summary

  • Enable the expo-audio foreground service on Android by passing enableBackgroundRecording: true to the config plugin (was previously a bare string with no options, so the flag defaulted to false)
  • Add android.permission.POST_NOTIFICATIONS required by the foreground service notification

Why it was broken

expo-audio 1.1+ ships a native AudioRecordingService that keeps recording alive when the screen turns off, but it only activates when enableBackgroundRecording: true is passed to the plugin. Without it, useForegroundService stays false on every recorder and Android kills the microphone on screen-off.

Important

This is a native change — requires eas build --platform android, not an OTA update.

🤖 Generated with Claude Code

…ervice

Pass enableBackgroundRecording: true to the expo-audio config plugin so
it wires up the AudioRecordingService foreground service on Android.
Also add POST_NOTIFICATIONS permission required by the service notification.

Without the plugin option, enableBackgroundRecording defaults to false
and the recorder's useForegroundService flag is never set, so Android
kills the microphone when the screen turns off.

Requires a native rebuild — not deliverable via OTA update.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@vercel

vercel Bot commented Mar 29, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
voicekeeper Ready Ready Preview, Comment Mar 29, 2026 7:51pm

@github-actions

Copy link
Copy Markdown

📱 Preview Update Ready

Branch: pr-49
Update: View on Expo

Scan to open in Expo Go

QR Code

Open the app on your device and scan this QR code, or open the Expo Go app and navigate to the update.

@End2EndAI
End2EndAI merged commit 28c0a75 into main Mar 29, 2026
3 checks passed
@End2EndAI
End2EndAI deleted the feature/background-recording-android branch March 29, 2026 19:59
End2EndAI added a commit that referenced this pull request Mar 29, 2026
…ervice (#49)

Pass enableBackgroundRecording: true to the expo-audio config plugin so
it wires up the AudioRecordingService foreground service on Android.
Also add POST_NOTIFICATIONS permission required by the service notification.

Without the plugin option, enableBackgroundRecording defaults to false
and the recorder's useForegroundService flag is never set, so Android
kills the microphone when the screen turns off.

Requires a native rebuild — not deliverable via OTA update.

Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
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

Successfully merging this pull request may close these issues.

1 participant