decord/source/modules/push_notifications/PushNotificationConstants.tsx

60 lines
1.7 KiB
TypeScript
Raw Normal View History

2026-08-13 07:00:46 +00:00
// Module ID: 5870
// Function ID: 5871
2026-07-20 16:05:17 +00:00
// Name: str2
2026-08-11 06:20:06 +00:00
// Dependencies: [1625, 1624, 500, 2]
2026-07-20 16:05:17 +00:00
// Exports: getDevicePushProvider
2026-08-13 07:00:46 +00:00
// Module 5870 (str2)
2026-07-23 10:11:24 +00:00
import getConstants from "getConstants";
import isMetaQuest from "isMetaQuest";
getConstants = getConstants.getConstants();
2026-07-29 08:29:29 +00:00
let str;
if (getConstants != null) {
str = getConstants.Identifier;
2026-07-20 16:05:17 +00:00
}
2026-07-29 08:29:29 +00:00
if (str == null) {
str = "";
2026-07-20 16:05:17 +00:00
}
2026-07-23 10:11:24 +00:00
isMetaQuest = isMetaQuest.isQuestRelease();
2026-07-20 16:05:17 +00:00
const startsWithResult = str.startsWith("com.discord.kodiak");
const startsWithResult1 = str.startsWith("com.hammerandchisel.discord.local");
2026-07-23 10:11:24 +00:00
const meta_horizon = "meta_horizon";
2026-07-20 16:05:17 +00:00
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;
}
2026-07-23 10:11:24 +00:00
const result = require("set").fileFinishedImporting("modules/push_notifications/PushNotificationConstants.tsx");
2026-07-20 16:05:17 +00:00
export const BUNDLE_ID = str;
2026-07-23 10:11:24 +00:00
export const IS_QUEST_RELEASE = isMetaQuest;
2026-07-20 16:05:17 +00:00
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() {
2026-07-23 10:11:24 +00:00
if (isMetaQuest) {
let str = meta_horizon;
2026-07-20 16:05:17 +00:00
} else {
str = "gcm";
if (!obj.isAndroid()) {
str = str2;
}
2026-07-29 08:29:29 +00:00
obj = require(500) /* set */;
2026-07-20 16:05:17 +00:00
}
return str;
};
export const NotificationTypes = { REMINDER: "reminder", TOP_MESSAGE_PUSH: "top_messages_push", TRENDING_CONTENT_PUSH: "trending_content_push" };