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

Audio is not recorded if device is locked on Android 14 #48

Open
xitronix opened this issue Jun 20, 2024 · 4 comments
Open

Audio is not recorded if device is locked on Android 14 #48

xitronix opened this issue Jun 20, 2024 · 4 comments

Comments

@xitronix
Copy link

How to reproduce

  1. Start recording
  2. Lock screen (in my case Pixel 7 with Android 14)
  3. Unlock screen

After these actions recorded data has empty samples during screen is locked

How to solve

Based on sources which I read

Useful sources

So as I understand new api requires Foreground Service with persistent notification. It would be nice if this library supports background recording on new android

@maksym-arturIn
Copy link

Met the same problem.
Please, this would be nice to have it supported

@maksym-arturIn
Copy link

@tchvu3 @BjoernRave Please resolve it. Seems like this extension can solve the problem https://gist.github.com/Venryx/e1f772b4c05b2da08e118ccd5cc162ff
I can pay for it

@xitronix
Copy link
Author

As temporary solution you can try use this one: https://www.npmjs.com/package/capacitor-voice-recorder . I have created fix and published for myself

@maksym-arturIn
Copy link

@xitronix thanks, I've found a good solution, it works perfectly with this plugin https://capawesome.io/plugins/android-foreground-service/ , but there is poor notification design customization API

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