diff --git a/.env b/.env new file mode 100644 index 0000000..109e4f4 --- /dev/null +++ b/.env @@ -0,0 +1 @@ +EXPO_PUBLIC_NOTIFICATIONS_AUTH_KEY=XXXXXX \ No newline at end of file diff --git a/App.tsx b/App.tsx index 51e475b..b3d7996 100644 --- a/App.tsx +++ b/App.tsx @@ -108,7 +108,7 @@ async function sendPushNotification(expoPushToken: string, useFCMv1: boolean = f await fetch(`https://exp.host/--/api/v2/push/send?useFcmV1=${request}`, { method: 'POST', headers: { - // Authorization: 'Bearer ', + Authorization: `Bearer ${process.env.EXPO_PUBLIC_NOTIFICATIONS_AUTH_KEY}`, Accept: 'application/json', 'Accept-encoding': 'gzip, deflate', 'Content-Type': 'application/json',