From 90867e6e5436e4b82bd374c13293a7ee0e4077b8 Mon Sep 17 00:00:00 2001 From: Christian Pauly Date: Mon, 18 Jan 2021 17:38:37 +0100 Subject: [PATCH] chore: Log warning if firebase token problem --- lib/utils/firebase_controller.dart | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/utils/firebase_controller.dart b/lib/utils/firebase_controller.dart index f2bad9f2..16e9fd00 100644 --- a/lib/utils/firebase_controller.dart +++ b/lib/utils/firebase_controller.dart @@ -34,8 +34,9 @@ abstract class FirebaseController { String token; try { token = await _firebaseMessaging.getToken(); - } catch (_) { + } catch (e, s) { token = null; + Logs().w('Unable to get firebase token', e, s); } if (token?.isEmpty ?? true) { final storeItem = await matrix.store.getItem(SettingKeys.showNoGoogle);