{"action":"created","issue":{"url":"https://api.github.com/repos/martijn00/XamarinMediaManager/issues/293","repository_url":"https://api.github.com/repos/martijn00/XamarinMediaManager","labels_url":"https://api.github.com/repos/martijn00/XamarinMediaManager/issues/293/labels{/name}","comments_url":"https://api.github.com/repos/martijn00/XamarinMediaManager/issues/293/comments","events_url":"https://api.github.com/repos/martijn00/XamarinMediaManager/issues/293/events","html_url":"https://github.com/martijn00/XamarinMediaManager/issues/293","id":271709254,"number":293,"title":"Why Wont The MediaNotificationManager Die?","user":{"login":"Nickprovs","id":30559588,"avatar_url":"https://avatars3.githubusercontent.com/u/30559588?v=4","gravatar_id":"","url":"https://api.github.com/users/Nickprovs","html_url":"https://github.com/Nickprovs","followers_url":"https://api.github.com/users/Nickprovs/followers","following_url":"https://api.github.com/users/Nickprovs/following{/other_user}","gists_url":"https://api.github.com/users/Nickprovs/gists{/gist_id}","starred_url":"https://api.github.com/users/Nickprovs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Nickprovs/subscriptions","organizations_url":"https://api.github.com/users/Nickprovs/orgs","repos_url":"https://api.github.com/users/Nickprovs/repos","events_url":"https://api.github.com/users/Nickprovs/events{/privacy}","received_events_url":"https://api.github.com/users/Nickprovs/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-11-07T04:50:26Z","updated_at":"2017-11-07T17:24:25Z","closed_at":null,"author_association":"NONE","body":"I have this line in my constructor on my page.\r\n\r\n```` CrossMediaManager.Current.AudioPlayer.StatusChanged += OnStatusChangedHandler;````\r\n\r\nThis is a method in that class.\r\n\r\n````\r\nprivate void OnStatusChangedHandler(object sender, StatusChangedEventArgs e)\r\n        {\r\n            if (e.Status == Plugin.MediaManager.Abstractions.Enums.MediaPlayerStatus.Stopped)\r\n                audioCleanup();\r\n        }\r\n\r\n````\r\n\r\nThis is audioCleanup()\r\n````\r\n        protected void audioCleanup()\r\n        {\r\n            if (CrossMediaManager.Current.AudioPlayer.Status != Plugin.MediaManager.Abstractions.Enums.MediaPlayerStatus.Stopped)\r\n                CrossMediaManager.Current.AudioPlayer.Stop();\r\n\r\n            if (CrossMediaManager.Current.MediaNotificationManager != null)\r\n            {\r\n                CrossMediaManager.Current.MediaNotificationManager.StopNotifications();\r\n            }\r\n        }\r\n````\r\n\r\nThe media manager notification bar thing at the top disappears and then reappears in a second. Despite there not being any audio playing. I'm testing on Android atm."},"comment":{"url":"https://api.github.com/repos/martijn00/XamarinMediaManager/issues/comments/342557553","html_url":"https://github.com/martijn00/XamarinMediaManager/issues/293#issuecomment-342557553","issue_url":"https://api.github.com/repos/martijn00/XamarinMediaManager/issues/293","id":342557553,"user":{"login":"mike-rowley","id":15679646,"avatar_url":"https://avatars0.githubusercontent.com/u/15679646?v=4","gravatar_id":"","url":"https://api.github.com/users/mike-rowley","html_url":"https://github.com/mike-rowley","followers_url":"https://api.github.com/users/mike-rowley/followers","following_url":"https://api.github.com/users/mike-rowley/following{/other_user}","gists_url":"https://api.github.com/users/mike-rowley/gists{/gist_id}","starred_url":"https://api.github.com/users/mike-rowley/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mike-rowley/subscriptions","organizations_url":"https://api.github.com/users/mike-rowley/orgs","repos_url":"https://api.github.com/users/mike-rowley/repos","events_url":"https://api.github.com/users/mike-rowley/events{/privacy}","received_events_url":"https://api.github.com/users/mike-rowley/received_events","type":"User","site_admin":false},"created_at":"2017-11-07T17:24:25Z","updated_at":"2017-11-07T17:24:25Z","author_association":"CONTRIBUTOR","body":"I had this exact issue, in my case it was a timer I had setup calling UpdateNotification, which reinitializes the Notification.  "}}
{"actor":{"display_login":"mike-rowley"}}