add more logs for notifs
This commit is contained in:
parent
3d690c26d8
commit
0d1ace3fd0
2 changed files with 2 additions and 0 deletions
|
|
@ -83,6 +83,7 @@ class NotificationController
|
|||
File? icon,
|
||||
String? payload,
|
||||
}) async {
|
||||
debugPrint("Sending notification for $id");
|
||||
final notificationDetails = NotificationDetails(
|
||||
android: .new(
|
||||
"messages",
|
||||
|
|
|
|||
|
|
@ -53,6 +53,7 @@ class UnifiedPushController extends AsyncNotifier<bool> {
|
|||
);
|
||||
},
|
||||
onMessage: (message, instance) async {
|
||||
debugPrint("UP message received for $instance");
|
||||
if (message.decrypted == false) {
|
||||
throw Exception(
|
||||
"Failed to decrypt notification. Try toggling off and on UnifiedPush in settings.",
|
||||
|
|
|
|||
Loading…
Reference in a new issue