Ответ на Push-Уведомление

# #react-native #push-notification #firebase-cloud-messaging #expo

Вопрос:

У меня есть эта функция в моем приложении Expo:

 export const sendPushNotification = async (recieverId) =gt; {  console.log("fcmToken -gt;", recieverId);  const message = {  to: recieverId,  sound: "default",  title: "App Name",  body: "You have a message",  };   const response = fetch("https://exp.host/--/api/v2/push/send", {  method: "POST",  headers: {  Accept: "application/json",  "Accept-encoding": "gzip, deflate",  "Content-Type": "application/json",  },  body: JSON.stringify(message),  });  console.log("response -gt; ", (await response).statusText);  console.log("message -gt; ", message);  return response; };  

Вот мои журналы:

 response -gt; undefined message -gt; Object {  "body": "You have a message",  "sound": "default",  "title": "Meet A Sikh",  "to": "aaaaaaaaaaaaaaaa_bbbbbbbbbbb_EdpYyYSK-ql25AUurpLZ0uS9cgSKUq3QXYdtWWJz7k4ioUqWghheI3fX-e5Cm9mPOpZu33l6gPOyTx4M-02_C46m-mms7syhXO55CF_D0p_66Z5i71ro",  

}

Не уверен, почему мой ответ таков response -gt; undefined

Я выполнил правильные шаги с Expo, чтобы настроить push-уведомления