Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] Release 1.2.0 is broken #69

Closed
boldt opened this issue Jan 27, 2023 · 7 comments
Closed

[BUG] Release 1.2.0 is broken #69

boldt opened this issue Jan 27, 2023 · 7 comments
Assignees
Labels
bug Something isn't working

Comments

@boldt
Copy link

boldt commented Jan 27, 2023

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 boldt added the bug Something isn't working label Jan 27, 2023
@boldt boldt changed the title [BUG] Release 1.2.0 broken [BUG] Release 1.2.0 is broken Jan 27, 2023
@PeterNjeim
Copy link

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

@Sembauke
Copy link

@boldt Which version of Android are you using?

@boldt
Copy link
Author

boldt commented Feb 10, 2023

Android 12

@den0206
Copy link

den0206 commented Mar 26, 2023

same issue, not show notification.

@jakoss
Copy link

jakoss commented Mar 30, 2023

The Service is removed from manifest, look here: fcce0d5#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

inetic added a commit to inetic/flutter_background that referenced this issue Jun 11, 2023
Without it the IsolateHolderService won't start. See issue
JulianAssmann#69
@vmwsree
Copy link

vmwsree commented Jul 14, 2023

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

@JulianAssmann
Copy link
Owner

Thank you for creating this issue. Sorry for the long delay, I'm very busy at work right now.

I just released a new version of the plugin with support for Android 14 and above, thanks to #89. The gist of it is, that from Android 14 (API level 34) upwards, you have to define the foreground service type(s) that you need for your app specifically. Therefore, it makes sense to move the declaration of these service types into the application using the plugin. Please refer to the new README and the Android documentation for further information.

I'll close this issue for now. If you are still having trouble, please don't hesitate to re-open it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

7 participants