I am integrating youtube on cobalt 11. And now I'm testing the application lifecycle test.
- I send the
suspend
event when I push the menu button (youtube goes to background) - I send the
unpause
event when I switch back to youtube. (youtube comes to foreground) - I send the
deepLinke
event after theunpause
event
Sequence of events:
window.onfocus
window.onblur
....................?launch=remote
window.onfocus
..................:visible
onvisibilityChange:hidden
window.onblur
visible
When onvisibilityChange:hidden
, youtube goes to the background; is that right?
This makes the screen turn black.
And why 1. window.onfocus
and 2. window.onblur
occur again after youtube has already resumed?