mirror of
https://github.com/selfxyz/self.git
synced 2026-02-19 02:24:25 -05:00
feat(kyc): register fcm token for sumsub verification (#1673)
* feat(kyc): register fcm token for sumsub verification * fix tests * remove unused import * fix lint
This commit is contained in:
committed by
GitHub
parent
f11e860659
commit
a6c84d80f7
@@ -3,6 +3,7 @@
|
||||
// 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';
|
||||
|
||||
@@ -36,6 +37,10 @@ const error = (...args: unknown[]) => {
|
||||
if (!isTestEnv) console.error(...args);
|
||||
};
|
||||
|
||||
export function getSelfUuidNamespace(): string {
|
||||
return SELF_UUID_NAMESPACE ?? '';
|
||||
}
|
||||
|
||||
export { getStateMessage };
|
||||
|
||||
export async function isNotificationSystemReady(): Promise<{
|
||||
|
||||
Reference in New Issue
Block a user