@@ -34,12 +34,20 @@ public Fixture()
3434 private readonly Fixture _fixture = new ( ) ;
3535
3636#if __MOBILE__
37+ // TODO: This test doesn't work on Android or iOS, so isn't much use. We should consider replacing it with some
38+ // more granular tests that test SentryMauiOptionsSetup, SentryMauiScreenshotProcessor and ScreenshotAttachment
39+ // in isolation. It's generally hard to test any of this functionality since ScreenshotImplementation relies of
40+ // various static members like ActivityStateManager.Default:
41+ // https://github.com/dotnet/maui/blob/3c7b65264d2f341a48db32263a271fd8718cfd23/src/Essentials/src/Screenshot/Screenshot.android.cs#L28
3742 [ SkippableFact ]
3843 public async Task CaptureException_WhenAttachScreenshots_ContainsScreenshotAttachmentAsync ( )
3944 {
4045#if __IOS__
4146 Skip . If ( true , "Flaky on iOS" ) ;
4247#endif
48+ #if ANDROID
49+ Skip . If ( true , "Doesn't work on Android" ) ;
50+ #endif
4351
4452 // Arrange
4553 var builder = _fixture . Builder . UseSentry ( ) ;
@@ -133,12 +141,20 @@ public async Task CaptureException_BeforeCaptureScreenshot_DisableCaptureAsync()
133141 envelopeItem . Should ( ) . BeNull ( ) ;
134142 }
135143
144+ // TODO: This test doesn't work on Android or iOS, so isn't much use. We should consider replacing it with some
145+ // more granular tests that test SentryMauiOptionsSetup, SentryMauiScreenshotProcessor and ScreenshotAttachment
146+ // in isolation. It's generally hard to test any of this functionality since ScreenshotImplementation relies of
147+ // various static members like ActivityStateManager.Default:
148+ // https://github.com/dotnet/maui/blob/3c7b65264d2f341a48db32263a271fd8718cfd23/src/Essentials/src/Screenshot/Screenshot.android.cs#L28
136149 [ SkippableFact ]
137150 public async Task CaptureException_BeforeCaptureScreenshot_DefaultAsync ( )
138151 {
139152#if __IOS__
140153 Skip . If ( true , "Flaky on iOS" ) ;
141154#endif
155+ #if ANDROID
156+ Skip . If ( true , "Doesn't work on Android" ) ;
157+ #endif
142158
143159 // Arrange
144160 var builder = _fixture . Builder . UseSentry ( options => options . SetBeforeScreenshotCapture ( ( e , hint ) =>
0 commit comments