StartService is throwing exception when triggered on Oreo while in previous android was playing fine. So on MainActivity I have
play.Click += (sender, args) => SendAudioCommand(StreamingBackgroundService.ActionPlay);
private void SendAudioCommand(string action)
{
var intent = new Intent(action);
StartService(intent);
}
And when I press play button it throws exception on StartService Command while the intent var is not null. I 've read a lot about JobScheduler but nothing telling about background service as sticky running it from main activity with other way of StartService.
The exception is : Unhandled Exception: Java.Lang.IllegalStateException: occurred