chore: self UUID namespace as a const (#1685)

This commit is contained in:
Leszek Stachowski
2026-02-03 12:44:34 +01:00
committed by GitHub
parent 2fd8d18107
commit 2ebf7918c7
4 changed files with 6 additions and 12 deletions

View File

@@ -3,7 +3,6 @@
// NOTE: Converts to Apache-2.0 on 2029-06-11 per LICENSE.
import { PermissionsAndroid, Platform } from 'react-native';
import { SELF_UUID_NAMESPACE } from '@env';
import type { FirebaseMessagingTypes } from '@react-native-firebase/messaging';
import messaging from '@react-native-firebase/messaging';
@@ -15,6 +14,8 @@ import {
} from '@/services/notifications/notificationService.shared';
import { useSettingStore } from '@/stores/settingStore';
export const SELF_UUID_NAMESPACE = '00000000-0000-8000-8000-531f00000000';
export async function getFCMToken(): Promise<string | null> {
try {
const token = await messaging().getToken();
@@ -37,10 +38,6 @@ const error = (...args: unknown[]) => {
if (!isTestEnv) console.error(...args);
};
export function getSelfUuidNamespace(): string {
return SELF_UUID_NAMESPACE ?? '';
}
export { getStateMessage };
export async function isNotificationSystemReady(): Promise<{