decord/source/modules/push_notifications/PushNotificationConstants.tsx

62 lines
1.7 KiB
TypeScript
Raw Normal View History

// Module ID: 6596
// Function ID: 6597
2026-07-20 16:05:17 +00:00
// Name: str2
// Dependencies: [1364, 1608, 1115, 2]
2026-07-20 16:05:17 +00:00
// Exports: getDevicePushProvider
// Module 6596 (str2)
2026-08-24 06:08:38 +00:00
import set from "set" /* 2 */;
import set2 from "set" /* 1115 */;
import getConstants from "getConstants" /* 1364 */;
import isMetaQuest from "isMetaQuest" /* 1608 */;
2026-07-23 10:11:24 +00:00
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-08-24 06:08:38 +00:00
const result = 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-08-24 06:08:38 +00:00
obj = set2;
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" };