You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The events are emitted as long as the screen is on (even if the app is in the background), however when the device is locked and the screen is turned off events are never emitted until the application is opened back up.
For example the following code will output "video end" in the console but will never trigger the listener on the JS side of the application.
It appears to be related to this issue: facebook/react-native#1282 that was apparently solved in 0.14. However am experiencing this problem in react-native 0.37.
Any ideas on how to fix this/get around this issue?
Want to be able to fetch new audio tracks from the network while the app is in the background (similar to Spotify/other audio streaming apps).
The text was updated successfully, but these errors were encountered:
Finally figured it out. My onEnd() javascript callback did not take in an event parameter. Changing it to onEnd(event) solved all the problems. Interestingly no errors/exceptions were thrown throughout the debugging process and the callback worked fine as long as the screen was not both turned off and locked. Weird. Turns out it was not related to native events as I initially thought.
The events are emitted as long as the screen is on (even if the app is in the background), however when the device is locked and the screen is turned off events are never emitted until the application is opened back up.
For example the following code will output "video end" in the console but will never trigger the listener on the JS side of the application.
It appears to be related to this issue: facebook/react-native#1282 that was apparently solved in 0.14. However am experiencing this problem in react-native 0.37.
Any ideas on how to fix this/get around this issue?
Want to be able to fetch new audio tracks from the network while the app is in the background (similar to Spotify/other audio streaming apps).
The text was updated successfully, but these errors were encountered: