add more logs for notifs

This commit is contained in:
Henry Hiles 2026-09-20 13:41:22 -04:00
commit 0d1ace3fd0
Signed by: Henry-Hiles
SSH key fingerprint: SHA256:VKQUdS31Q90KvX7EkKMHMBpUspcmItAh86a+v7PGiIs
2 changed files with 2 additions and 0 deletions

View file

@ -83,6 +83,7 @@ class NotificationController
File? icon, File? icon,
String? payload, String? payload,
}) async { }) async {
debugPrint("Sending notification for $id");
final notificationDetails = NotificationDetails( final notificationDetails = NotificationDetails(
android: .new( android: .new(
"messages", "messages",

View file

@ -53,6 +53,7 @@ class UnifiedPushController extends AsyncNotifier<bool> {
); );
}, },
onMessage: (message, instance) async { onMessage: (message, instance) async {
debugPrint("UP message received for $instance");
if (message.decrypted == false) { if (message.decrypted == false) {
throw Exception( throw Exception(
"Failed to decrypt notification. Try toggling off and on UnifiedPush in settings.", "Failed to decrypt notification. Try toggling off and on UnifiedPush in settings.",