invertase / notifee

⚛️ A feature rich notifications library for React Native.
https://notifee.app
Apache License 2.0
1.88k stars 227 forks source link

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 2 weeks ago

FurankuSQ commented 2 weeks ago

Environment

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

Actual Behavior

mikehardy commented 2 weeks ago

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