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

Since iOS 18.X update, microphone recording stops when the device is manually put to sleep. This can be observed by the microphone indicator disappearing from the lock screen. Recording only resumes when bringing the app back to the foreground. #1139

Open
FurankuSQ opened this issue Nov 5, 2024 · 1 comment

Comments

@FurankuSQ
Copy link

Environment

  • React Native Expo version: ~51.0.37
  • @notifee/react-native version: ^9.0.0
  • iOS version: 18.X
  • Device: iPhone 17.2

Steps to Reproduce

  1. Start recording with microphone using foreground service
  2. Manually put the device to sleep (press power button)
  3. Observe the microphone indicator on the lock screen
  4. The microphone indicator disappears and recording pauses
  5. Wake up the device
  6. Recording remains paused until the app is brought back to foreground

Expected Behavior

  • The microphone indicator should remain visible on the lock screen
  • Recording should continue uninterrupted when device is locked
  • Foreground service should maintain microphone access

Actual Behavior

  • Microphone indicator disappears from lock screen
  • Recording automatically pauses
  • Recording only resumes when manually returning to the app
  • Issue appears consistently when device is locked
  • Problem only observed since iOS 18.X update
@mikehardy
Copy link
Contributor

Hi there - going to need a couple things to move forward here

Problem only observed since iOS 18.X update

Can you check through release notes for iOS changes from 17.x -> 18.x to see if any related items are noted there? Linking to that documentation would be a big help

Have you checked on stackoverflow to look for any related behavior changes with user locking screen on iOS? Any relevant links, also helpful

This is not a use case of mine so I won't be able to reproduce this unless you post a reproducer

You can use this to create a skeleton notifee example app with current versions https://github.com/mikehardy/rnfbdemo/blob/main/notifee-demo.sh

A minimum reproduction with just an App.tsx file combined with a skeleton app from that template would go a long way to isolating this https://stackoverflow.com/help/minimal-reproducible-example

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

2 participants