flutter_local_notifications scheduling is not working

flutter local notifications works fine for instant notification using the mehtod show
but does not schedule a notification for future time even after 1 second while the app is open

i initialized the notifications plugin like using this function and instant notifications works great

  static Future initialize(FlutterLocalNotificationsPlugin flutterLocalNotificationsPlugin)async{
    var androidInitialize = new AndroidInitializationSettings('mipmap/ic_launcher');
    var initializationSettings = new InitializationSettings(android:androidInitialize,);
    await flutterLocalNotificationsPlugin.initialize(initializationSettings);
  }

i initialized timezone and specified the local time zone
i specified the channel name ‘you_can_name_it_whatever1’ in the manifiest and added the permissions as i said it works fine for instant notification by pressing a btn to display a notification using the show method

this is the code for scheduling a notification

Future zonedScheduleNotification(String note, DateTime date, occ) async {
        // IMPORTANT!!
        //tz.initializeTimeZones(); --> call this before using tz.local (ideally put it in your init state)
        
        int id = math.Random().nextInt(10000);
        print(date.toString());
        print(tz.TZDateTime.parse(tz.local, date.toString())
            .toString());
        try {
          await flutterLocalNotificationsPlugin.zonedSchedule(
            id,
            occ,
            note,
            tz.TZDateTime.parse(tz.local, date.toString()),
            NotificationDetails(
              android: AndroidNotificationDetails(
      'you_can_name_it_whatever1',
      'channel_name',

      playSound: true,
      //sound: RawResourceAndroidNotificationSound('notification'),
      importance: Importance.max,
      priority: Priority.high
    ),
            ),
            androidScheduleMode: AndroidScheduleMode.exactAllowWhileIdle ,
            uiLocalNotificationDateInterpretation:
                UILocalNotificationDateInterpretation.absoluteTime,
          );
          return id;
        } catch (e) {
          print("Error at zonedScheduleNotification----------------------------$e");
          if (e ==
              "Invalid argument (scheduledDate): Must be a date in the future: Instance of 'TZDateTime'") {
            alert(context, "Select future date");
          }
          return -1;
        }
      }

then i called it inside a btn using

            DateTime later =  DateTime.now().add(Duration(seconds:3));;
        print('____________________________________this is later');
        print(later);
               zonedScheduleNotification('a note',later,'well');

but nothing happens no error no notification OBS

sorry if it was a dump question, am kindof new

i tried many different things like corn with instant notification call using show and it works while the app is either active or in the background but it stops when the app is terminated
i tried the package awsome notifications but it did’t work

i tried calling schedule notification like this…
from the offical documentation

await flutterLocalNotificationsPlugin.zonedSchedule(
    0,
    'scheduled title',
    'scheduled body',
    tz.TZDateTime.now(tz.local).add(const Duration(seconds: 5)),
    const NotificationDetails(
        android: AndroidNotificationDetails( // 
            'you_can_name_it_whatever1', 'you_can_name_it_whatever1',
            channelDescription: 'your channel description')),
    androidScheduleMode: AndroidScheduleMode.exactAllowWhileIdle,
    uiLocalNotificationDateInterpretation:
        UILocalNotificationDateInterpretation.absoluteTime);

i been at this for days now if there is another way to schedule a notification when the app is in any state active idle or terminated tell me i well use it
again sorry if it was a dump question am new
thank you

Trang chủ Giới thiệu Sinh nhật bé trai Sinh nhật bé gái Tổ chức sự kiện Biểu diễn giải trí Dịch vụ khác Trang trí tiệc cưới Tổ chức khai trương Tư vấn dịch vụ Thư viện ảnh Tin tức - sự kiện Liên hệ Chú hề sinh nhật Trang trí YEAR END PARTY công ty Trang trí tất niên cuối năm Trang trí tất niên xu hướng mới nhất Trang trí sinh nhật bé trai Hải Đăng Trang trí sinh nhật bé Khánh Vân Trang trí sinh nhật Bích Ngân Trang trí sinh nhật bé Thanh Trang Thuê ông già Noel phát quà Biểu diễn xiếc khỉ Xiếc quay đĩa Dịch vụ tổ chức sự kiện 5 sao Thông tin về chúng tôi Dịch vụ sinh nhật bé trai Dịch vụ sinh nhật bé gái Sự kiện trọn gói Các tiết mục giải trí Dịch vụ bổ trợ Tiệc cưới sang trọng Dịch vụ khai trương Tư vấn tổ chức sự kiện Hình ảnh sự kiện Cập nhật tin tức Liên hệ ngay Thuê chú hề chuyên nghiệp Tiệc tất niên cho công ty Trang trí tiệc cuối năm Tiệc tất niên độc đáo Sinh nhật bé Hải Đăng Sinh nhật đáng yêu bé Khánh Vân Sinh nhật sang trọng Bích Ngân Tiệc sinh nhật bé Thanh Trang Dịch vụ ông già Noel Xiếc thú vui nhộn Biểu diễn xiếc quay đĩa Dịch vụ tổ chức tiệc uy tín Khám phá dịch vụ của chúng tôi Tiệc sinh nhật cho bé trai Trang trí tiệc cho bé gái Gói sự kiện chuyên nghiệp Chương trình giải trí hấp dẫn Dịch vụ hỗ trợ sự kiện Trang trí tiệc cưới đẹp Khởi đầu thành công với khai trương Chuyên gia tư vấn sự kiện Xem ảnh các sự kiện đẹp Tin mới về sự kiện Kết nối với đội ngũ chuyên gia Chú hề vui nhộn cho tiệc sinh nhật Ý tưởng tiệc cuối năm Tất niên độc đáo Trang trí tiệc hiện đại Tổ chức sinh nhật cho Hải Đăng Sinh nhật độc quyền Khánh Vân Phong cách tiệc Bích Ngân Trang trí tiệc bé Thanh Trang Thuê dịch vụ ông già Noel chuyên nghiệp Xem xiếc khỉ đặc sắc Xiếc quay đĩa thú vị
Trang chủ Giới thiệu Sinh nhật bé trai Sinh nhật bé gái Tổ chức sự kiện Biểu diễn giải trí Dịch vụ khác Trang trí tiệc cưới Tổ chức khai trương Tư vấn dịch vụ Thư viện ảnh Tin tức - sự kiện Liên hệ Chú hề sinh nhật Trang trí YEAR END PARTY công ty Trang trí tất niên cuối năm Trang trí tất niên xu hướng mới nhất Trang trí sinh nhật bé trai Hải Đăng Trang trí sinh nhật bé Khánh Vân Trang trí sinh nhật Bích Ngân Trang trí sinh nhật bé Thanh Trang Thuê ông già Noel phát quà Biểu diễn xiếc khỉ Xiếc quay đĩa
Thiết kế website Thiết kế website Thiết kế website Cách kháng tài khoản quảng cáo Mua bán Fanpage Facebook Dịch vụ SEO Tổ chức sinh nhật