Open jokerCheng-c opened 2 weeks ago
I ham having the same issue. It works in my emulator but not on my physical device
Initialize AwesomeNotifications in the main() entry point and the error will go away.
AwesomeNotifications().initialize(
// set the icon to null if you want to use the default app icon
null,
[
NotificationChannel(
channelGroupKey: 'basic_channel_group',
channelKey: 'basic_channel',
channelName: 'Basic notifications',
channelDescription: 'Notification channel for basic tests',
defaultColor: Colors.blue,
ledColor: Colors.white,
importance: NotificationImportance.Max,
)
],
// Channel groups are only visual and are not required
channelGroups: [
NotificationChannelGroup(
channelGroupKey: 'basic_channel_group',
channelGroupName: 'Basic group')
],
debug: true,
);
same issue, any update?
same issue, any update?
Have you tried the solution above?
Yes fixed, thanks a lot.
Initialize AwesomeNotifications in the main() entry point and the error will go away.
AwesomeNotifications().initialize( // set the icon to null if you want to use the default app icon null, [ NotificationChannel( channelGroupKey: 'basic_channel_group', channelKey: 'basic_channel', channelName: 'Basic notifications', channelDescription: 'Notification channel for basic tests', defaultColor: Colors.blue, ledColor: Colors.white, importance: NotificationImportance.Max, ) ], // Channel groups are only visual and are not required channelGroups: [ NotificationChannelGroup( channelGroupKey: 'basic_channel_group', channelGroupName: 'Basic group') ], debug: true, );
thanks bro
W/Android: Awesome Notifications: Channel model 'basic_channel' was not found (ChannelManager:88) E/Android: Awesome Notifications: Notification channel 'basic_channel' does not exist. (NotificationContentModel:58) How should i solve the problem?