Since Google forced the upgrade to 8.0, I cannot get notifications working reliably. Specifically, if the user puts my app into the background attempting to receive or perhaps display notifications causes a crash. It takes some time and/or number of notifications to cause the crash, usually a minute or two, and/or half dozen messages.
Google talks about calling methods like StartForegroundService() and StartForeground() in order to get things to work, but I cannot figure out how this fits into the Xamarin framework. StartForegroundService is supposed to be called in the MainActivity's OnCreate, and then StartForeground in the Service's OnCreate within 5 seconds. Well there is no way that is happening in 5 seconds.
Many Xamarin sample projects are old and/or limited in scope. How do you create a user app that can be put into the background, receive Azure push messages and display notifications without crashing on Android 8.0+?
And what, if anything, does this have to do with JobScheduler?