From 00837a67909dfe48803a4183bcb4b874c673ab4e Mon Sep 17 00:00:00 2001 From: ammarahm-ed Date: Thu, 12 Jan 2023 18:47:39 +0500 Subject: [PATCH] mobile: show in app notification sounds on sdk < 26 --- apps/mobile/app/screens/settings/settings-data.tsx | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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) {