All files / apps/host/src/services/notification constants.ts

100% Statements 3/3
100% Branches 0/0
100% Functions 0/0
100% Lines 3/3

Press n or j to go to the next uncovered block, b, p or k for the previous block.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48    9x           9x                                     9x                                        
import { AndroidImportance } from '@notifee/react-native';
 
export const NOTIFICATION_CHANNEL = {
  ID: 'default',
  NAME: 'Default Channel',
  IMPORTANCE: AndroidImportance.HIGH,
} as const;
 
export const NOTIFICATION_CONFIG = {
  ANDROID: {
    channelId: NOTIFICATION_CHANNEL.ID,
    importance: NOTIFICATION_CHANNEL.IMPORTANCE,
    pressAction: {
      id: 'default',
    },
    smallIcon: 'ic_launcher', // Fallback to app icon
  },
  IOS: {
    sound: 'default',
    foregroundPresentationOptions: {
      alert: true,
      badge: true,
      sound: true,
    },
  },
} as const;
 
export const NOTIFICATION_LOG = {
  COMPONENT: 'notification',
  ACTIONS: {
    INITIALIZE: 'initialize',
    DIRECT_NAVIGATE: 'direct_navigate',
    EXTRACT_DATA: 'extract_data',
    BUILD_DEEP_LINK: 'build_deep_link',
    CHECK_INITIAL: 'check_initial',
    REQUEST_PERMISSION: 'request_permission',
    GET_TOKEN: 'get_token',
    SETUP_AFTER_LOGIN: 'setup_after_login',
    DISPLAY: 'display_notification',
    SUBSCRIBE: 'subscribe_topic',
    UNSUBSCRIBE: 'unsubscribe_topic',
    OPEN_SETTINGS: 'open_settings',
    CHECK_INITIAL_MOUNT: 'check_initial_on_mount',
    CHECK_INITIAL_FOREGROUND: 'check_initial_on_foreground',
    CREATE_CHANNEL: 'create_channel',
  },
} as const;