From 9c6d4a5cfeb2071528113484d01c8abcc6aa086a Mon Sep 17 00:00:00 2001 From: jamshale Date: Thu, 7 Sep 2023 11:42:45 -0700 Subject: [PATCH] Initialize push notification token as blank (disabled) Signed-off-by: jamshale --- app/src/helpers/PushNotificationsHelper.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/src/helpers/PushNotificationsHelper.ts b/app/src/helpers/PushNotificationsHelper.ts index 8b1d077d8..6b91d76c9 100644 --- a/app/src/helpers/PushNotificationsHelper.ts +++ b/app/src/helpers/PushNotificationsHelper.ts @@ -155,7 +155,8 @@ const setDeviceInfo = async (agent: Agent, blankDeviceToken = false): Promi * @returns {Promise} */ const setup = async (agent: Agent): Promise => { - setDeviceInfo(agent) + // FIXME: Currently set the token to blank (disabled) on initialization. + setDeviceInfo(agent, true) _backgroundHandler() _foregroundHandler() _requestPermission(agent)