11/17/1
This commit is contained in:
@@ -45,18 +45,6 @@ void main() async {
|
||||
// if (Platform.isAndroid) {
|
||||
NotificationController notificationController =
|
||||
Get.put(NotificationController());
|
||||
await notificationController.initNotifications();
|
||||
|
||||
// Generate a random index to pick a message
|
||||
final random = Random();
|
||||
final randomMessage = messages[random.nextInt(messages.length)];
|
||||
|
||||
// Schedule the notification with the random message
|
||||
notificationController.scheduleDailyNotifications(
|
||||
randomMessage.split(':')[0],
|
||||
randomMessage.split(':')[1],
|
||||
"ding",
|
||||
);
|
||||
|
||||
// await NotificationController().initNotifications();
|
||||
// }
|
||||
@@ -100,13 +88,18 @@ void main() async {
|
||||
userTokenExpiration: 200,
|
||||
iFrameID: 837992,
|
||||
);
|
||||
// Get device information
|
||||
// List<Map<String, dynamic>> deviceDataList =
|
||||
// await DeviceInfoPlus.getDeviceInfo();
|
||||
//
|
||||
// // Print all device data
|
||||
// DeviceInfoPlus.printDeviceInfo();
|
||||
await notificationController.initNotifications();
|
||||
|
||||
// Generate a random index to pick a message
|
||||
final random = Random();
|
||||
final randomMessage = messages[random.nextInt(messages.length)];
|
||||
|
||||
// Schedule the notification with the random message
|
||||
notificationController.scheduleNotificationsForSevenDays(
|
||||
randomMessage.split(':')[0],
|
||||
randomMessage.split(':')[1],
|
||||
"tone1",
|
||||
);
|
||||
runApp(const MyApp());
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user