From 873a43907ea5d7d8f8468ce806f08c8b9c65146e Mon Sep 17 00:00:00 2001 From: Greg Price Date: Fri, 13 Oct 2023 18:41:48 -0700 Subject: [PATCH] wip TODO defer setup if not logged in, to defer needing permissions --- lib/notif.dart | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/notif.dart b/lib/notif.dart index 063fe0ae6bf..6863401370e 100644 --- a/lib/notif.dart +++ b/lib/notif.dart @@ -23,6 +23,9 @@ class NotificationService { void start() async { await ZulipBinding.instance.firebaseInitializeApp(); + // TODO defer notif setup if user not logged into any accounts + // (in order to avoid calling for permissions) + // Get the FCM registration token, now and upon changes. See FCM API docs: // https://firebase.google.com/docs/cloud-messaging/android/client#sample-register ZulipBinding.instance.firebaseMessaging.onTokenRefresh.listen(_onTokenRefresh);