Skip to content

Obfuscated apk does not work in Flutter 2.2.0+, worked in Flutter 1.22.6 #10

Description

@gazialankus

I build my apk with obfuscation
flutter build apk --obfuscate --split-debug-info=debuginfo_to_deobfuscate

With this, the background service's persistent notification appears when using Flutter 1.22.6. After upgrading to Flutter 2.2.0, the persistent notification stopped appearing and the app does not work in the background anymore. I set minifyEnabled false in app/build.gradle in case it's R8 that's the problem.

Doing either one of the things below make the persistent notification appear again:

  • build using flutter build apk, without obfuscation
  • downgrade Flutter to 1.22.6

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions