Describe the bug
App crashes after accepting permission.
Expected behavior
Supposed to work normally.
Smartphone:
Android emulator/ Real device
Logs
```
[✓] Flutter (Channel stable, 2.8.0, on Ubuntu 20.04.3 LTS 5.13.0-27-generic, locale en_US.UTF-8)
• Flutter version 2.8.0 at /home/utan/snap/flutter/common/flutter
• Upstream repository https://github.com/flutter/flutter.git
• Framework revision cf44000065 (7 weeks ago), 2021-12-08 14:06:50 -0800
• Engine revision 40a99c5951
• Dart version 2.15.0
[✓] Android toolchain - develop for Android devices (Android SDK version 30.0.3)
• Android SDK at /home/utan/Android/Sdk
• Platform android-31, build-tools 30.0.3
• Java binary at: /snap/android-studio/115/android-studio/jre/bin/java
• Java version OpenJDK Runtime Environment (build 11.0.10+0-b96-7249189)
• All Android licenses accepted.
[✓] Chrome - develop for the web
• Chrome at google-chrome
[✓] Android Studio (version 2020.3)
• Android Studio at /snap/android-studio/115/android-studio
• Flutter plugin can be installed from:
🔨 https://plugins.jetbrains.com/plugin/9212-flutter
• Dart plugin can be installed from:
🔨 https://plugins.jetbrains.com/plugin/6351-dart
• Java version OpenJDK Runtime Environment (build 11.0.10+0-b96-7249189)
[✓] VS Code
• VS Code at /snap/code/current
• Flutter extension version 3.32.0
[✓] Connected device (2 available)
• sdk gphone x86 (mobile) • emulator-5554 • android-x86 • Android 11 (API 30) (emulator)
• Chrome (web)
```
I get following error:
D/AndroidRuntime( 8657): Shutting down VM
E/AndroidRuntime( 8657): FATAL EXCEPTION: main
E/AndroidRuntime( 8657): Process: rvc.chat.client.com, PID: 8657
E/AndroidRuntime( 8657): android.app.RemoteServiceException: Context.startForegroundService() did not then call Service.startForeground(): ServiceRecord{a6cf6c9 u0 rvc.chat.client.com/de.julianassmann.flutter_background.IsolateHolderService}
Describe the bug App crashes after accepting permission.
Expected behavior Supposed to work normally.
Smartphone:
Logs
``` [✓] Flutter (Channel stable, 2.8.0, on Ubuntu 20.04.3 LTS 5.13.0-27-generic, locale en_US.UTF-8) • Flutter version 2.8.0 at /home/utan/snap/flutter/common/flutter • Upstream repository https://github.com/flutter/flutter.git • Framework revision cf44000065 (7 weeks ago), 2021-12-08 14:06:50 -0800 • Engine revision 40a99c5951 • Dart version 2.15.0 [✓] Android toolchain - develop for Android devices (Android SDK version 30.0.3) • Android SDK at /home/utan/Android/Sdk • Platform android-31, build-tools 30.0.3 • Java binary at: /snap/android-studio/115/android-studio/jre/bin/java • Java version OpenJDK Runtime Environment (build 11.0.10+0-b96-7249189) • All Android licenses accepted. [✓] Chrome - develop for the web • Chrome at google-chrome [✓] Android Studio (version 2020.3) • Android Studio at /snap/android-studio/115/android-studio • Flutter plugin can be installed from: 🔨 https://plugins.jetbrains.com/plugin/9212-flutter • Dart plugin can be installed from: 🔨 https://plugins.jetbrains.com/plugin/6351-dart • Java version OpenJDK Runtime Environment (build 11.0.10+0-b96-7249189) [✓] VS Code • VS Code at /snap/code/current • Flutter extension version 3.32.0 [✓] Connected device (2 available) • sdk gphone x86 (mobile) • emulator-5554 • android-x86 • Android 11 (API 30) (emulator) • Chrome (web) ```I get following error: