Closed MagnusJohansson closed 3 years ago
I face the same issue you can try watching this https://youtu.be/0TOEV3fIGPY . You can try adding io.flutter.app.FlutterApplication in android menifest. That worked for me!
Yes, this did the trick. Thank you! I did play around with the android:name attribute, but only on the main activity, never on the application element.
Background: In my app, I need both the audio_service and the Android alarm manager plugin. (So this is Android only) I need the ability to schedule an alarm at a specific time. This alarm should trigger even though the app has been closed. (I.e. Android will wake up the app and execute the relevant code in an isolate). In my app I am using the audio_service (the "one-isolate" branch) https://github.com/ryanheise/audio_service/tree/one-isolate
Minimal reproduction project The minimal reproduction code is based on the example project. A new button is added the schedules an alarm after 10 seconds. (Just like the android_alarm_manager_plus example)
Reproduction example base on the one-isolate branch is here: https://github.com/MagnusJohansson/audio_service/tree/one-isolate-alarm-manager/audio_service/example
NOTE: I originally posted this crash/bug with the author of the audio_service: https://github.com/ryanheise/audio_service/issues/704 Since then, I have upgraded to the android_alarm_manager_plus plugin, with the same behavior as the original android_alarm_manager. The author suggested the following:
System info
Issue occurs on: Android Plugin name: android_alarm_manager_plus Plugin version: 1.0.1 Flutter doctor output:
Steps to Reproduce
Launch the example app.
Logs
Logcat Exception:
flutter run -v output:
flutter analyze output: