Skip to content

[Bug]: Issues on GrapheneOS #402

Open
@FaFre

Description

@FaFre

Required Reading

  • Confirmed

Plugin Version

1.3.8

Flutter Doctor

[✓] Flutter (Channel stable, 3.32.5, on EndeavourOS 6.15.4-arch2-1, locale en_US.UTF-8)
[✓] Android toolchain - develop for Android devices (Android SDK version 35.0.0)
[✓] Chrome - develop for the web
[✓] Linux toolchain - develop for Linux desktop
[✓] Android Studio (version 2024.3.2)
[✓] Connected device (3 available)
[✓] Network resources

• No issues found!

Mobile operating-system(s)

  • iOS
  • Android

Device Manufacturer(s) and Model(s)

Pixel 9a

Device operating-systems(s)

Android 15 (GrapheneOS)

What happened?

One of my two Android 15 devices won't execute the background task. Its running GrapheneOS and unfortunately I could not find any related issues to what I get from the logs..

Plugin Code and/or Config

await BackgroundFetch.configure(
              BackgroundFetchConfig(
                minimumFetchInterval: 15,
                enableHeadless: true,
                stopOnTerminate: false,
                requiredNetworkType: NetworkType.ANY,
                startOnBoot: true,
              ),
              (String taskId) async {
                try {
                  await ref
                      .read(fetchArticlesControllerProvider.notifier)
                      .fetchAllArticles();

                  logger.i('Fetched articles in foreground');
                } catch (e, s) {
                  logger.e('Failed fetching articles', error: e, stackTrace: s);
                } finally {
                  await BackgroundFetch.finish(taskId);
                }
              },
            );

Relevant log output

Most of the time just one Log is issued:
06-30 06:13:39.389  4178  4178 W JobService: onNetworkChanged() not implemented in com.transistorsoft.tsbackgroundfetch.FetchJobService. Must override in a subclass.

Sometimes I do see this instead:

06-30 06:14:18.837  4178  4178 D TSBackgroundFetch: [BGTask] timeout: flutter_background_fetch
06-30 06:14:18.838  4178  4178 E TSBackgroundFetch: FetchStreamHandler.onTimeout mEventSink is null.  Cannot fire Dart callback

or

06-30 06:13:18.837  4178  4178 D TSBackgroundFetch: - Background Fetch event received: flutter_background_fetch
06-30 06:13:18.837  4178  4178 E TSBackgroundFetch: FetchStreamHandler.onFetch mEventSink is null.  Cannot fire Dart callback

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions