イマイチだった設定を変更

This commit is contained in:
harukin-expo-dev-env 2025-01-14 07:40:57 +00:00
parent b02a2dd77a
commit c193f325bb

View File

@ -36,29 +36,25 @@ async function registerForPushNotificationsAsync() {
if (Platform.OS === "android") { if (Platform.OS === "android") {
Notifications.setNotificationChannelAsync("default", { Notifications.setNotificationChannelAsync("default", {
name: "default", name: "default",
groupId: "default", importance: Notifications.AndroidImportance.DEFAULT,
importance: Notifications.AndroidImportance.MAX,
vibrationPattern: [0, 250, 250, 250], vibrationPattern: [0, 250, 250, 250],
lightColor: "#FF231F7C", lightColor: "#FF231F7C",
}); });
Notifications.setNotificationChannelAsync("運行情報", { Notifications.setNotificationChannelAsync("運行情報", {
name: "運行情報", name: "運行情報",
groupId: "運行情報", importance: Notifications.AndroidImportance.DEFAULT,
importance: Notifications.AndroidImportance.MAX,
vibrationPattern: [0, 250, 250, 250], vibrationPattern: [0, 250, 250, 250],
lightColor: "#FF231F7C", lightColor: "#FF231F7C",
}); });
Notifications.setNotificationChannelAsync("遅延速報EX", { Notifications.setNotificationChannelAsync("遅延速報EX", {
name: "遅延速報EX", name: "遅延速報EX",
groupId: "遅延速報EX", importance: Notifications.AndroidImportance.LOW,
importance: Notifications.AndroidImportance.MAX,
vibrationPattern: [0, 250, 250, 250], vibrationPattern: [0, 250, 250, 250],
lightColor: "#FF231F7C", lightColor: "#FF231F7C",
}); });
Notifications.setNotificationChannelAsync("怪レい列車BOT", { Notifications.setNotificationChannelAsync("怪レい列車BOT", {
name: "怪レい列車BOT", name: "怪レい列車BOT",
groupId: "怪レい列車BOT", importance: Notifications.AndroidImportance.LOW,
importance: Notifications.AndroidImportance.MAX,
vibrationPattern: [0, 250, 250, 250], vibrationPattern: [0, 250, 250, 250],
lightColor: "#FF231F7C", lightColor: "#FF231F7C",
}); });