Skip to content

A fully open source & end-to-end encrypted note taking alternative to Evernote.

mobile: show in app notification sounds on sdk < 26

ammarahm-ed00837a67909d
diff --git a/apps/mobile/app/screens/settings/settings-data.tsx b/apps/mobile/app/screens/settings/settings-data.tsx
index 9c3058746..e8c0d38f6 100644
--- a/apps/mobile/app/screens/settings/settings-data.tsx
+++ b/apps/mobile/app/screens/settings/settings-data.tsx
@@ -890,7 +890,7 @@ export const settingsGroups: SettingSection[] = [
"Set the notification sound for reminder notifications",
component: "sound-picker",
icon: "bell-ring",
- hidden: () => Platform.OS === "android"
+ hidden: () => Platform.OS === "android" && Platform.Version > 25
},
{
id: "reminder-sound",
@@ -898,7 +898,9 @@ export const settingsGroups: SettingSection[] = [
description:
"Set the notification sound for reminder notifications",
icon: "bell-ring",
- hidden: () => Platform.OS === "ios",
+ hidden: () =>
+ Platform.OS === "ios" ||
+ (Platform.OS === "android" && Platform.Version < 26),
modifer: async () => {
const id = await Notifications.getChannelId("urgent");
if (id) {