Skip to content

Commit

Permalink
wip TODO defer setup if not logged in, to defer needing permissions
Browse files Browse the repository at this point in the history
  • Loading branch information
gnprice committed Oct 14, 2023
1 parent 05700db commit 873a439
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/notif.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 873a439

Please sign in to comment.