Thanks Ed. The only change to the original question was for clarity. You can view the edits if you like. The description and problem statement has not changed at all. Appreciate your assistance, but unfortunately your answer does
not resolve the issue. The 'app is in background' is exactly the problem here - why is Android reporting that the app is in the background, after
onResume()
is called? The answer is
not 'because I didn't call startForeground()`' This is due to a platform bug by the looks of it. See
issuetracker.google.com/issues/113122354