Skip to content

shakeToReport is not working on Android device #20

@yorihutagalung

Description

@yorihutagalung

Hi team!

I'm currently using bugsee_flutter 7.1.0 in my project, and I'm unable to use the shakeToReport feature on Android devices (both real device and emulator). However, it's working as expected on iOS real devices.

This issue can be reproduced using a new Flutter app. Here is the example code:

Future<void> launchBugsee(void Function(bool isBugseeLaunched) appRunner) async {
  BugseeLaunchOptions launchOptions;
  String bugseeToken = "";

  if (Platform.isAndroid) {
    bugseeToken = "android_token";
    launchOptions = AndroidLaunchOptions();
  } else if (Platform.isIOS) {
    bugseeToken = "ios_token";
    launchOptions = IOSLaunchOptions();
  } else {
    appRunner(false);
    return;
  }

  launchOptions.shakeToReport = true;
  await Bugsee.launch(bugseeToken, appRunCallback: appRunner, launchOptions: launchOptions);
}

Future<void> main() async {
  // This is required to let Bugsee intercept network requests
  HttpOverrides.global = Bugsee.defaultHttpOverrides;

  await launchBugsee((bool isBugseeLaunched) async {
    runApp(const MainApp());
  });
}

And here are my Flutter & Dart SDK versions from pubspec.lock:

sdks:
  dart: ">=2.19.6 <3.0.0"
  flutter: ">=3.7.12"

Do i miss out any configuration?

Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions