Instabug-Android icon indicating copy to clipboard operation
Instabug-Android copied to clipboard

Android screenshots/vids are black

Open baku-apps opened this issue 3 years ago • 2 comments

Steps to Reproduce the Problem

Create screen shot with Android

Expected Behavior

Should see screenshot

Actual Behavior

Seeing black screen

Instabug integration code

public class CustomFlutterApplication extends FlutterApplication {
  @Override
  public void onCreate() {
    super.onCreate();
    ArrayList<String> invocation_events = new ArrayList<>();
    invocation_events.add(InstabugFlutterPlugin.INVOCATION_EVENT_FLOATING_BUTTON);
    invocation_events.add(InstabugFlutterPlugin.INVOCATION_EVENT_SCREENSHOT);
    InstabugFlutterPlugin instabug = new InstabugFlutterPlugin();
    instabug.start(CustomFlutterApplication.this, "...", invocation_events);
    instabug.setWelcomeMessageMode("WelcomeMessageMode.disabled");
  }
}

SDK Version

v10.11.0

Flutter, iOS and Android Versions

only Android version

Device Model

Galaxy 10 plus (but also other models)

baku-apps avatar Jan 13 '22 16:01 baku-apps

Check if you are disabling the screenshots in your activity/fragment with something similar to:

window.setFlags(WindowManager.LayoutParams.FLAG_SECURE, WindowManager.LayoutParams.FLAG_SECURE)

as Instabug cannot circumvent this setting on its own.

adamszewe avatar Jan 20 '22 13:01 adamszewe

can you please provide a sample app with the issue becauase we can’t reproduce it with the steps provided

khalid-3lnagar avatar Jan 24 '22 14:01 khalid-3lnagar

Hello @baku-apps I hope you have a lovely day. We will close this one, but if you still have any issues, please don't hesitate to reopen it anytime. Thank you.

Bashayer-reda avatar Feb 01 '24 14:02 Bashayer-reda