mirror of
https://github.com/nostrlabs-io/zap-stream-flutter.git
synced 2025-06-15 19:48:23 +00:00
feat: register notifications (notepush)
This commit is contained in:
@ -1,8 +1,11 @@
|
||||
import 'dart:developer' as developer;
|
||||
|
||||
import 'package:firebase_core/firebase_core.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:zap_stream_flutter/app.dart';
|
||||
import 'package:zap_stream_flutter/const.dart';
|
||||
import 'package:zap_stream_flutter/i18n/strings.g.dart';
|
||||
import 'package:zap_stream_flutter/notifications.dart';
|
||||
|
||||
Future<void> main() async {
|
||||
WidgetsFlutterBinding.ensureInitialized();
|
||||
@ -10,5 +13,9 @@ Future<void> main() async {
|
||||
await Firebase.initializeApp();
|
||||
await initLogin();
|
||||
|
||||
setupNotifications().catchError((e) {
|
||||
developer.log("Failed to setup notifications: $e");
|
||||
});
|
||||
|
||||
runZapStream();
|
||||
}
|
||||
|
Reference in New Issue
Block a user