firebase / flutterfire

🔥 A collection of Firebase plugins for Flutter apps.
https://firebase.google.com/docs/flutter/setup
BSD 3-Clause "New" or "Revised" License
8.66k stars 3.96k forks source link

🐛 [firebase_app_distribution] In-app tester feedback feature from Firebase App Distribution unable to take screenshots in Flutter apps #11687

Open foxanna opened 12 months ago

foxanna commented 12 months ago

Bug report

In-app testers' feedback feature is unable to take a screenshot of the Flutter app. Instead, a black rectangle is shown. Attaching an image from the gallery works as expected. Here is the video of the problem:

https://github.com/firebase/flutterfire/assets/1845144/382a9af5-fb72-40f1-8e67-d1523815daf7

The same results are delivered to the Firebase App Distribution dashboard:

Screenshot 2023-10-08 at 15 35 55 Screenshot 2023-10-08 at 15 36 07

Steps to reproduce

Check the sample project for the exact steps.

Expected behavior

I guess product owners would know better, but I assume either the screenshot should be taken immediately or this feature should be disabled.

Sample project

I prepared a repository where this problem is reproducible. The README file contains all the steps performed.


Additional context

I opened a similar issue in the firebase-android-sdk repository. Even though only native android firebase sdk is used in the sample, it was closed with the suggestion to open it here.


Flutter doctor

Run flutter doctor and paste the output below:

Click To Expand ``` Doctor summary (to see all details, run flutter doctor -v): [✓] Flutter (Channel stable, 3.13.6, on macOS 13.5.2 22G91 darwin-arm64, locale en-UA) [✓] Android toolchain - develop for Android devices (Android SDK version 34.0.0) [✓] Xcode - develop for iOS and macOS (Xcode 15.0) [✓] Chrome - develop for the web [✓] Android Studio (version 2022.3) [✓] IntelliJ IDEA Ultimate Edition (version 2023.2.2) [✓] VS Code (version 1.79.2) [✓] Connected device (4 available) [✓] Network resources • No issues found! ```

Flutter dependencies

Run flutter pub deps -- --style=compact and paste the output below:

Click To Expand ``` Dart SDK 3.1.3 Flutter SDK 3.13.6 flutter_app_firebase_feedback_demo 1.0.0+1 dependencies: - cupertino_icons 1.0.6 - firebase_core 2.17.0 [firebase_core_platform_interface firebase_core_web flutter meta] - flutter 0.0.0 [characters collection material_color_utilities meta vector_math web sky_engine] dev dependencies: - flutter_lints 2.0.3 [lints] - flutter_test 0.0.0 [flutter test_api matcher path fake_async clock stack_trace vector_math async boolean_selector characters collection material_color_utilities meta source_span stream_channel string_scanner term_glyph web] transitive dependencies: - async 2.11.0 [collection meta] - boolean_selector 2.1.1 [source_span string_scanner] - characters 1.3.0 - clock 1.1.1 - collection 1.17.2 - fake_async 1.3.1 [clock collection] - firebase_core_platform_interface 4.8.0 [collection flutter flutter_test meta plugin_platform_interface] - firebase_core_web 2.8.0 [firebase_core_platform_interface flutter flutter_web_plugins js meta] - flutter_web_plugins 0.0.0 [flutter characters collection material_color_utilities meta vector_math web] - js 0.6.7 [meta] - lints 2.1.1 - matcher 0.12.16 [async meta stack_trace term_glyph test_api] - material_color_utilities 0.5.0 [collection] - meta 1.9.1 - path 1.8.3 - plugin_platform_interface 2.1.6 [meta] - sky_engine 0.0.99 - source_span 1.10.0 [collection path term_glyph] - stack_trace 1.11.0 [path] - stream_channel 2.1.1 [async] - string_scanner 1.2.0 [source_span] - term_glyph 1.2.1 - test_api 0.6.0 [async boolean_selector collection meta source_span stack_trace stream_channel string_scanner term_glyph] - vector_math 2.1.4 - web 0.1.4-beta ```

darshankawar commented 12 months ago

Thanks for the detailed report and repro steps @foxanna It seems firebase_app_distributon feature is not yet supported by Flutterfire per https://github.com/firebase/flutterfire/issues/11607

I'll keep this issue open for team's input / attention and for better tracking.

/cc @russellwheatley. Shall we add firebase_app_distribution label to track issues for it ?