[ad_1]
I adopted ResoCoder’s information on arrange the whole lot having to do with the Superior Notifications Plugin. Once I attempt creating a brand new primary notification, this error known as:
My Code
Future<void> createBasicNotification() async {
attempt {
await AwesomeNotifications().createNotification(
content material: NotificationContent(
id: createUniqueId(),
channelKey: 'basic_channel',
title: '${Emojis.money_coin} Check Notification Title',
physique: 'This '
'is your first notification boy',
bigPicture: 'belongings://belongings/frediLogoSlogan.png',
notificationLayout: NotificationLayout.BigPicture));
} on PlatformException catch (error) {
print("poop $error");
}
}
Then I name:
onPressed: () async {
print('pressed');
await createBasicNotification();
},
The Error (Output)
pressed
flutter: PlatformException(exception, Unknow error, The operation couldn’t be accomplished. (awesome_notifications.AwesomeNotificationsException error 1.), null)
I do not know what to repair as there isn’t any description.
Please Assist! Thanks!
[ad_2]