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
Instead, the notification shows up after you have paused it, presumably because showNotification() is placed in onPlayerStateChanged().
Then the notification disappears after completing a question. It will only reappear after pressing pause again in the next question. This behaviour probably occurs because the activity is finished and recreated with each next question.
Not sure where showNotification() should be placed instead to address these issues.