Skip to content

android_alarm_manager: "Background start not allowed"  #26846

@opensourcegps

Description

@opensourcegps

Steps to Reproduce

  1. Install and run android_alarm_manager example on API 27+
    https://github.com/flutter/plugins/tree/master/packages/android_alarm_manager/example

  2. Kill the app to test background service.

Logs

1-21 10:39:26.345  1643  1699 W ActivityManager: Background start not allowed: service Intent { flg=0x4 cmp=io.flutter.plugins.androidalarmmanagerexample/io.flutter.plugins.androidalarmmanager.AlarmService (has extras) } to io.flutter.plugins.androidalarmmanagerexample/io.flutter.plugins.androidalarmmanager.AlarmService from pid=-1 uid=10082 pkg=io.flutter.plugins.androidalarmmanagerexample

✓] Flutter (Channel stable, v1.0.0, on Linux, locale en_US.UTF-8)
    • Flutter version 1.0.0 at /home/flutter/flutter_v1.0.0-stable
    • Framework revision 5391447fae (7 weeks ago), 2018-11-29 19:41:26 -0800
    • Engine revision 7375a0f414
    • Dart version 2.1.0 (build 2.1.0-dev.9.4 f9ebf21297)

[✓] Android toolchain - develop for Android devices (Android SDK 28.0.3)
    • Android SDK at /home/android/sdk
    • Android NDK location not configured (optional; useful for native profiling support)
    • Platform android-28, build-tools 28.0.3
    • ANDROID_HOME = /home/android/sdk
    • Java binary at: /home/android/src/android-studio/jre/bin/java
    • Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1136-b06)
    • All Android licenses accepted.

[✓] Android Studio (version 3.2)
    • Android Studio at /home/android/src/android-studio
    • Flutter plugin version 31.1.1
    • Dart plugin version 181.5656
    • Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1136-b06)

[✓] Connected device (1 available)
    • Android SDK built for x86 • emulator-5554 • android-x86 • Android 8.1.0 (API 27) (emulator)

• No issues found!

Same bug as this one: #16719
It was closed by bot without fixing.

Metadata

Metadata

Assignees

Labels

c: crashStack traces logged to the consolecustomer: productp: android_alarm_managerThe Android background execution pluginpackageflutter/packages repository. See also p: labels.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions