Expo Notification API

Please provide the following:

  1. SDK Version: 34
  2. Platforms(Android/iOS/web/all): Android/iOS

Please tell me the way to use Expo notification API from Google Apps Script

I’m trying

UrlFetchApp.fetch('https://exp.host/--/api/v2/push/send',{
      method: "POST",
      body: JSON.stringify([{
        to: "deviceToken",
        badge: 1,
        title: "title",
        body: "message",
        channelId: "Default"
      }]),
      headers: {
        Accept: 'application/json',
        'content-type': 'application/json',
      }
    })

but doesn’t work

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.