🎤 Builder Talk: The Story Behind Lady Gaga’s Digital Experience – Register now

OneSignal

By Bünyamin Öztürk

Helps making push notifications for your content

Warning

This plugin only works with an older version of Sanity Studio (v2), which is deprecated.

Learn how to migrate to the new Studio v3 →

sanity-plugin-onesignal

OneSignal Push Notification support for Sanity.io

Installation

sanity install onesignal

Usage

Use it in your schema types:

// [...]
{
  fields: [
    // [...]
    {
      name: 'onesignal',
      title: 'Notification',
      type: 'onesignal',
    },
  ]
}

Configuration

To use it you need to define your API Key and APP ID

// .../studio/config/onesignal.json
{
  "onesignalApiKey": "exampleKey",
  "onesignalAppId": "exampleID"
}

v2 install command (deprecated)

sanity install onesignal

Contributor