audio_service
audio_service copied to clipboard
App stops at splash screen after entering via firebase notification
Documented behaviour
The application should work properly after implementing the plugin. It should turn on correctly from a notification or from the home screen.
Actual behaviour
The application stop on splash screen when accessed from a firebase notification. Nothing can be done. When you open the app without notification everything works fine.
Minimal reproduction project
https://github.com/Szymon-Gesicki/AudioServiceExample
Reproduction steps
- compile the applications and copy your fcm token
- turn off the application, stop, so that it not be in the background, terminanted
- send "push notification" to your phone. To do this, use the command below. Replace the fcm token with yours in "to" variable
curl --location --request POST 'https://fcm.googleapis.com/fcm/send' \
--header 'Authorization: key=AAAAddPFzt8:APA91bFdGwc83baoL7NG5Jje7tnoU4ALub0_V159cupx--bPqVra29WKmG_4Sq83r5zo5S8mlrcDOj4T72y9vWQorsyVDNP7rlgvn8hcECaV6HL4pyn_hyhRaHrUEtIg2Vsn7idJL_dv' \
--header 'Content-Type: application/json' \
--data-raw '{
"to" : "YOUR_TOKEN",
"data": {
"custom": "test"
}
}'
- click on the notification, the app will stop in a splash screen
Output of flutter doctor
[!] Android toolchain - develop for Android devices (Android SDK version 30.0.3)
✗ cmdline-tools component is missing
Run `path/to/sdkmanager --install "cmdline-tools;latest"`
See https://developer.android.com/studio/command-line for more details.
✗ Android license status unknown.
Run `flutter doctor --android-licenses` to accept the SDK licenses.
See https://flutter.dev/docs/get-started/install/macos#android-setup for more details.
[✓] Xcode - develop for iOS and macOS (Xcode 14.2)
[✓] Chrome - develop for the web
[✓] Android Studio
[✓] Android Studio (version 2021.1)
[✓] Android Studio (version 2021.2)
[✓] VS Code (version 1.76.0)
[✓] Connected device (5 available)
[✓] HTTP Host Availability
Devices exhibiting the bug
Android 12 Pixel 3a, on ios everything works fine