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,
|
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",
|
||||||
|
|
|
||||||
|
|
@ -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.",
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue