From 2c3b0e0ab99c42b7d9dbf150ca94f8968b002f11 Mon Sep 17 00:00:00 2001 From: Henry-Hiles Date: Tue, 22 Sep 2026 11:43:04 -0400 Subject: [PATCH] android compat for UP Not fully working yet --- lib/controllers/unified_push.dart | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/controllers/unified_push.dart b/lib/controllers/unified_push.dart index 719a096..60d3271 100644 --- a/lib/controllers/unified_push.dart +++ b/lib/controllers/unified_push.dart @@ -147,7 +147,7 @@ class UnifiedPushController extends AsyncNotifier { vapid: capabilities.webpush?.vapid, ); - if (!alreadyRegistered) ref.invalidateSelf(); + state = .data(true); } Future deregister() async { @@ -167,7 +167,7 @@ class UnifiedPushController extends AsyncNotifier { } await UnifiedPush.unregister(clientState.deviceId!); - ref.invalidateSelf(); + state = .data(false); } static final provider = AsyncNotifierProvider(