chore: add push notif

This commit is contained in:
2026-03-14 18:30:22 +01:00
parent b1a41c4a16
commit 2e7340f9a6
+6
View File
@@ -27,6 +27,12 @@ export async function registerForPushNotifications(): Promise<string | undefined
vibrationPattern: [0, 250, 250, 250], vibrationPattern: [0, 250, 250, 250],
lightColor: "#FF231F7C", lightColor: "#FF231F7C",
}); });
await Notifications.setNotificationChannelAsync("orders", {
name: "Commandes",
importance: Notifications.AndroidImportance.MAX,
vibrationPattern: [0, 250, 250, 250],
lightColor: "#7c3aed",
});
} }
if (Device.isDevice) { if (Device.isDevice) {