I'm having an issues with the Chromecast implementation for my app. I'm having an option to cast videos to a nearby device. This works fine for all Android version except Android 9 (API 28). The Chromecast icon is not visible on multiple Android 9 devices where I did a test. It is working perfectly fine with other apps though.
I reviewed the changes for the new Android version but I was unable to find a solution. I do have FOREGROUND_SERVICE
in my AndroidManifest so that should not be the problem.
My app is using version 16.1.2 of the play-services Google Cast (framework). And media router v7:26.1.
Is there an obvious change between the old Android versions and Android 9 that I'm missing here? Thanks for helping.