Improve notifications, tilawah flow, and dzikir structure
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
import 'dart:async';
|
||||
import 'dart:io' show Platform;
|
||||
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:flutter_riverpod/flutter_riverpod.dart';
|
||||
@@ -13,6 +14,7 @@ import 'data/local/models/app_settings.dart';
|
||||
import 'data/services/notification_inbox_service.dart';
|
||||
import 'data/services/notification_orchestrator_service.dart';
|
||||
import 'data/services/remote_push_service.dart';
|
||||
import 'data/services/background_sync_service.dart';
|
||||
import 'data/services/notification_service.dart';
|
||||
|
||||
void main() async {
|
||||
@@ -32,6 +34,10 @@ void main() async {
|
||||
|
||||
// Initialize local notifications for adzan/iqamah scheduling
|
||||
await NotificationService.instance.init();
|
||||
if (Platform.isAndroid || Platform.isIOS) {
|
||||
await BackgroundSyncService.instance.init();
|
||||
await BackgroundSyncService.instance.registerPeriodicSync();
|
||||
}
|
||||
await RemotePushService.instance.init();
|
||||
|
||||
// Run passive notification checks at startup (inbox cleanup/content sync).
|
||||
|
||||
Reference in New Issue
Block a user