// Module ID: 5933 // Function ID: 5934 // Name: PushNotificationConstants // Dependencies: [1381, 1628, 1382, 2] // Exports: getDevicePushProvider // Module 5933 (PushNotificationConstants) import PlatformUtils from "PlatformUtils" /* 1382 */; import react_native_mod from "react-native" /* 1381 */; import MetaQuestUtils_mod from "MetaQuestUtils" /* 1628 */; import size from "module_2" /* 2 */; let react_native = react_native_mod; react_native = react_native.getConstants(); let str; if (react_native != null) { str = react_native.Identifier; } if (str == null) { str = ""; } let MetaQuestUtils = MetaQuestUtils_mod; MetaQuestUtils = MetaQuestUtils.isQuestRelease(); const startsWithResult = str.startsWith("com.discord.kodiak"); const startsWithResult1 = str.startsWith("com.hammerandchisel.discord.local"); const meta_horizon = "meta_horizon"; let str2 = "apns_internal"; if (!startsWithResult) { let str3 = "apns"; if (startsWithResult1) { str3 = "apns_local"; } str2 = str3; } let str4 = "apns_internal_voip"; if (!startsWithResult) { let str5 = "apns_voip"; if (startsWithResult1) { str5 = "apns_local_voip"; } str4 = str5; } const result = size.fileFinishedImporting("modules/push_notifications/PushNotificationConstants.tsx"); export const BUNDLE_ID = str; export const IS_QUEST_RELEASE = MetaQuestUtils; export const DEVICE_PUSH_PROVIDER_ANDROID = "gcm"; export const DEVICE_PUSH_PROVIDER_META_HORIZON = "meta_horizon"; export const DEVICE_PUSH_PROVIDER_IOS = str2; export const DEVICE_PUSH_VOIP_PROVIDER = str4; export const getDevicePushProvider = function getDevicePushProvider() { let str; const tmp = MetaQuestUtils; if (tmp) { str = meta_horizon; } else { str = "gcm"; const obj = PlatformUtils; if (!obj.isAndroid()) { str = str2; } } return str; }; export const NotificationTypes = { REMINDER: "reminder", TOP_MESSAGE_PUSH: "top_messages_push", TRENDING_CONTENT_PUSH: "trending_content_push" };