Open valentin-debris opened 2 years ago
I have the exact same issue
@valentin-debris @jpd21122012 Thanks for the feedback.
@valentin-debris And thanks for the repro sample. Helps a lot.
Hello @moljac , any news about this issue ? Until a fix, we have to disable this functionnality in our app for OS12, which is not good for our customers that upgrade and miss it now :/
Hello @moljac , any news about this issue ?
Sorry, but no. Nothing yet. Trying to catch up with updates - a lot of new dependencies.
Until a fix, we have to disable this functionnality in our app for OS12, which is not good for our customers that upgrade and miss it now :/
OK from here (quick search):
Workarounds to try
Xamarin.AndroidX.Work.Runtime
2.7.1 (2.7.1.2)Xamarin.AndroidX.Media
1.4.1+
https://www.nuget.org/packages/Xamarin.AndroidX.Media/1.4.1PendingIntent pendingIntent = null;
if (android.os.Build.VERSION.SDK_INT >= android.os.Build.VERSION_CODES.S) {
pendingIntent = PendingIntent.getActivity
(this, 0, notificationIntent, PendingIntent.FLAG_MUTABLE);
}
else
{
pendingIntent = PendingIntent.getActivity
(this, 0, notificationIntent, PendingIntent.FLAG_ONE_SHOT);
}
@moljac , with my repo for testing, I tryed the first 2 solutions and they failed, same error. And the third one, I can't use it since the place where PendingIntent.getActivity() is not in my code, but somewhere in GooglePlayServicesComponents I guess.
Hi @moljac, any news on this issue ? Thanks a lot for your feedback.
I assume I have 'mitigated' this issue, by disabling the Cast notification when running on Android 12, by passing null into the CastMediaOptions.Bulder's SetNotificaiitonOptions() in my CastOptionsProvider.
Maybe this is of some help to anybody here.
However, I prefer an update of the bindings to the latest version to be able to use the notification as well.
Unfortunately the sample above doesn't work.
It looks like #582 updates the Cast Framework to version 21.0.1. @moljac anything we can do to speed this up?
works only with netstandard 2.0, i'm working with 2.1
Same issue, can't use Cast
Xamarin.Android Version
Minimum 5.0, Target 12.0
Operating System & Version
Windows 10 - Tested on real device Pixel 6 (Android 12.0)
Google Play Services Version
120.0.0.3
)1.3.1.3
)1.2.5.2
)Describe your Issue
With Android 12, the Cast crashes the app as soon as I select the device to Cast. Everything works well lower Android 12. I noticed that if I comment this line, it doesn't fail, but I can't do anything without that line !
Minimal Repro Code Sample
You can test with this example https://github.com/valentin-debris/XamarinTestCast
Steps to Reproduce (with link to sample solution if possible):
Include any relevant Exception Stack traces, build logs, adb logs: