1.0.4 • Published 2 years ago

sanity-plugin-onesignal v1.0.4

Weekly downloads
-
License
ISC
Repository
github
Last release
2 years ago

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"
}