diff --git a/packages/core-mobile/app/services/notifications/NotificationsService.ts b/packages/core-mobile/app/services/notifications/NotificationsService.ts index 63dc84ad8a..00c22886ec 100644 --- a/packages/core-mobile/app/services/notifications/NotificationsService.ts +++ b/packages/core-mobile/app/services/notifications/NotificationsService.ts @@ -22,7 +22,7 @@ import { } from 'contexts/DeeplinkContext/types' import { LAUNCH_ACTIVITY, - OPEN_CLAIM_REWARDS_PRESS_ACTION_ID, + PressActionId, STAKE_COMPELETE_DEEPLINK_URL } from './constants' @@ -137,7 +137,7 @@ class NotificationsService { badgeCount: 1, channelId: channel.id, pressAction: { - id: OPEN_CLAIM_REWARDS_PRESS_ACTION_ID, + id: PressActionId.OPEN_CLAIM_REWARDS, launchActivity: LAUNCH_ACTIVITY } } @@ -310,7 +310,8 @@ class NotificationsService { channelId, // pressAction is needed if you want the notification to open the app when pressed pressAction: { - id: 'openC-ChainPortfolio' + id: PressActionId.OPEN_PORTFOLIO, + launchActivity: LAUNCH_ACTIVITY } }, data diff --git a/packages/core-mobile/app/services/notifications/constants.ts b/packages/core-mobile/app/services/notifications/constants.ts index a97a49a12f..023f6d5c57 100644 --- a/packages/core-mobile/app/services/notifications/constants.ts +++ b/packages/core-mobile/app/services/notifications/constants.ts @@ -1,4 +1,8 @@ export const STAKE_COMPELETE_DEEPLINK_URL = 'core://stakecomplete' -export const OPEN_CLAIM_REWARDS_PRESS_ACTION_ID = - 'open-claim-rewards-press-action-id' + +export enum PressActionId { + OPEN_CLAIM_REWARDS = 'open-claim-rewards-press-action-id', + OPEN_PORTFOLIO = 'openC-ChainPortfolio' +} + export const LAUNCH_ACTIVITY = 'com.avaxwallet.MainActivity'