From a4cce277374ff9b497e778798b5e0e5fa1a9e11b Mon Sep 17 00:00:00 2001 From: Fredrik Burmester Date: Fri, 7 Nov 2025 13:30:06 +0100 Subject: [PATCH] fix: try to fix android notifications --- app.json | 5 ++++- app/_layout.tsx | 4 +++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/app.json b/app.json index 26d0b2a0..f85333a1 100644 --- a/app.json +++ b/app.json @@ -131,7 +131,10 @@ "expo-notifications", { "icon": "./assets/images/notification.png", - "color": "#9333EA" + "color": "#9333EA", + "android": { + "projectId": "streamyfin-4fec1" + } } ], "./plugins/with-runtime-framework-headers.js", diff --git a/app/_layout.tsx b/app/_layout.tsx index 677fc6ce..34302de4 100644 --- a/app/_layout.tsx +++ b/app/_layout.tsx @@ -287,7 +287,9 @@ function Layout() { // only create push token for real devices (pointless for emulators) if (Device.isDevice) { - Notifications?.getExpoPushTokenAsync() + Notifications?.getExpoPushTokenAsync({ + projectId: "streamyfin-4fec1", + }) .then((token: ExpoPushToken) => token && setExpoPushToken(token)) .catch((reason: any) => console.log("Failed to get token", reason)); }