From 0d852a30921e510f6986dcdff848067e4e4d5e06 Mon Sep 17 00:00:00 2001 From: MGS Creativa Date: Tue, 18 Jun 2024 09:19:10 -0300 Subject: [PATCH] added .env --- .env | 1 + App.tsx | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) create mode 100644 .env 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',