JulianAssmann / flutter_background

A flutter plugin to keep apps running in the background via foreground services. Android only.
https://pub.dev/packages/flutter_background
MIT License
85 stars 45 forks source link

[BUG] binaryMessenger null value #38

Open DanielusG opened 2 years ago

DanielusG commented 2 years ago

Describe the bug when i start the application null exception trowed

To Reproduce final androidConfig = FlutterBackgroundAndroidConfig(

notificationTitle: "Allarme",
notificationText: "Notifica per gli errori",
notificationImportance: AndroidNotificationImportance.Default,
notificationIcon: AndroidResource(name: 'background_icon', defType: 'drawable'),
// Default is ic_launcher from folder mipmap

); bool a = await FlutterBackground.initialize(androidConfig: androidConfig); add this code to the main and run start

Screenshots image Smartphone:

Logs ``` ``` ``` ```
slowisfast168 commented 2 years ago

This bug is still there on the version flutter_background: ^1.0.2+1

JulianAssmann commented 2 years ago

@slowisfast168 @DanielusG Can you check if that error still exists with the current version (v. 1.1.0) and let me know?

otto-dev commented 2 years ago

I just ran into this on 1.1.0. Cheers

bachbop9999 commented 2 years ago

Did this issue be solved? I meet this one on 1.0.0v

JulianAssmann commented 2 years ago

Unfortunately, I currently don't have time to test this. I hope, I will be able to test and fix this within the coming months.