flutter_background icon indicating copy to clipboard operation
flutter_background copied to clipboard

[BUG] Release 1.2.0 is broken

Open boldt opened this issue 2 years ago • 6 comments

Describe the bug

The release 1.2.0 is broken on real devices (Pixel/Samsung/Motorola). The always-visible-notification is not shown anymore and the app stopps working after some time.

Workaround

Downgrading back to 1.1.0 and the apps works again as expected.

boldt avatar Jan 27 '23 14:01 boldt

Can confirm on Xiaomi Mi 9T Pro running Pixel-based Android 13 custom ROM. No notification is displayed

PeterNjeim avatar Jan 31 '23 08:01 PeterNjeim

@boldt Which version of Android are you using?

Sembauke avatar Feb 10 '23 18:02 Sembauke

Android 12

boldt avatar Feb 10 '23 18:02 boldt

same issue, not show notification.

den0206 avatar Mar 26 '23 14:03 den0206

The Service is removed from manifest, look here: https://github.com/JulianAssmann/flutter_background/commit/fcce0d57525802b6f720dee0a080a10a0feaca4b#diff-93083d0574bec8be4b25f798b65dd82a612412c23a79dc9bdfdfb4a6b7ab37a3L3-L13

It shouldn't be removed. The workaround is to add it to your manifest:

<service
    android:name="de.julianassmann.flutter_background.IsolateHolderService"
    android:exported="false" />

But the changes i've linked should definitely be reversed

jakoss avatar Mar 30 '23 11:03 jakoss

I downgraded but its a new app so kotlin error, does that mean I need to have support for android 13 or can I do some simple fix

┌─ Flutter Fix ──────────────────────────────────────────────────────────────────────────────┐ │ [!] Your project requires a newer version of the Kotlin Gradle plugin. │ │ Find the latest version on https://kotlinlang.org/docs/releases.html#release-details, then │ │ update /Users/vmwsree/VIVEK-Personal/lab/letsgocamp/android/build.gradle: │ │ ext.kotlin_version = '<latest-version>'

vmwsree avatar Jul 14 '23 14:07 vmwsree