-
Notifications
You must be signed in to change notification settings - Fork 474
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
Youtube player crashes when user clicks on notification when video is playing #432
Comments
I need play video youtube in my react native app and my app has crash same this problem Share My code: |
@cw-shubham-rajput what notifications? |
@davidohayon669 push notifications. |
I'm experiencing the same issue but when putting the app in the background while the video plays full screen – and it's pretty easy to solve (done in this PR actually --> #368). It looks like the library cannot handle the switch from background to foreground. For now I'm solving it by patching the library locally (without any other known unintended consequences so far). It would be great if the fix is merged into the main repo :) Thanks for your work on this! |
I too have been using it for a while now with the patch in production for almost a month now. No side effects so far, looking forward to getting it merged. |
+1 |
1 similar comment
+1 |
We are also facing same issues , please provide me solution on this |
Still happening on latest version:
|
crash logs
Caused by: java.lang.NullPointerException: Attempt to invoke virtual method 'android.os.Bundle android.content.Intent.getExtras()' on a null object reference
at com.google.android.youtube.player.YouTubeStandalonePlayer.getReturnedInitializationResult(Unknown Source:0)
at com.inprogress.reactnativeyoutube.YouTubeStandaloneModule$1.onActivityResult(YouTubeStandaloneModule.java:44)
at com.facebook.react.bridge.ReactContext.onActivityResult(ReactContext.java:277)
Adding null check would help
The text was updated successfully, but these errors were encountered: