chore: add push notif
This commit is contained in:
@@ -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) {
|
||||||
|
|||||||
Reference in New Issue
Block a user