INNER CODE UNIT · TypeScript

COUNTRY_CODE

WorldHealthOrganization/app · server/functions/src/index.ts:9

const COUNTRY_CODE = /^[A-Z][A-Z]$/; // Literal regex for immediate compilation.

// FCM documentation doesn"t specify standard but usually up to 162 chars
// https://stackoverflow.com/a/12502351/1509221
const FCM_TOKEN_MAX_LENGTH = 4096;

enum Platform {
  IOS = 0,
  ANDROID = 1,
  WEB = 2,
}

interface Client {
  uuid: string;
  token: string;
  disableNotifcations: boolean;
  platform: Platform;
  isoCountryCode: string;

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…