-
Notifications
You must be signed in to change notification settings - Fork 24k
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
[Bridge] Dispatcher does not send events when phone is locked. #3273
Comments
Anyone care to take a look at this, please? :) |
If you encounter an issue the best way to get it fixed is to submit a PR with the right solution. There are only a handful of people working on RN and over 500 open issues and many PRs so high-quality PRs that are easy to maintain will get more attention. |
I've run into this personally. The solution i've found is to call an execution block when the phone is brought alive to update the state of the UI. However ALL -- absolutely ALL of the audio controls are routed through objc. |
@ide one issue with suggesting PRs is that someone can spend hours on a PR only for it to get rejected and/or ignored, even if it's a good solution. For example, I've submitted a PR allowing web views to cache contents -- something that is almost expected. That PR was ignored. |
This is a duplicate, the information provided here may help you. #1282 |
Thanks @mintuz |
I'm working on an app that plays music, and when one song ends the next one starts. The audio player is a bridged Native Module. A song's
onStop
callback triggers an event thatRCTEventDispatcher
sends. This is fine when the app is in the foreground or background. When the screen is locked, the event is lost somewhere between the dispatcher and the receiver.When the phone is locked, only "sent!" is logged:
Is there a setting that must be enabled to accommodate the dispatcher while the phone is locked?
The text was updated successfully, but these errors were encountered: