JulianAssmann / flutter_background

A flutter plugin to keep apps running in the background via foreground services. Android only.
https://pub.dev/packages/flutter_background
MIT License
85 stars 45 forks source link

[BUG] Release 1.2.0 is broken #69

Open boldt opened 1 year ago

boldt commented 1 year ago

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.

PeterNjeim commented 1 year ago

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

Sembauke commented 1 year ago

@boldt Which version of Android are you using?

boldt commented 1 year ago

Android 12

den0206 commented 1 year ago

same issue, not show notification.

jakoss commented 1 year ago

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

vmwsree commented 12 months ago

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>'