feat: push notification
This commit is contained in:
@@ -2,8 +2,11 @@ import 'package:flutter/material.dart';
|
||||
import 'src/views/rutas.dart';
|
||||
import 'src/views/login.dart';
|
||||
import 'src/views/home_screen.dart';
|
||||
import 'src/services/notification_service.dart'; // ← AGREGAR
|
||||
|
||||
void main() {
|
||||
void main() async { // ← CAMBIAR a async
|
||||
WidgetsFlutterBinding.ensureInitialized();
|
||||
await NotificationService.initialize(); // ← AGREGAR await
|
||||
runApp(const MyApp());
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user