feat: native download notifications (#1006)

This commit is contained in:
Fredrik Burmester
2025-09-03 21:50:25 +02:00
committed by GitHub
parent 957e60714a
commit b4014c922e
5 changed files with 120 additions and 16 deletions

View File

@@ -269,6 +269,15 @@ function Layout() {
await Notifications?.setNotificationChannelAsync("default", {
name: "default",
});
// Create dedicated channel for download notifications
console.log("Setting android notification channel 'downloads'");
await Notifications?.setNotificationChannelAsync("downloads", {
name: "Downloads",
importance: Notifications.AndroidImportance.DEFAULT,
vibrationPattern: [0, 250, 250, 250],
lightColor: "#FF231F7C",
});
}
const granted = await checkAndRequestPermissions();