OneSignal Push Notification support for Sanity.io
sanity install onesignal
Use it in your schema types:
// [...]
{
fields: [
// [...]
{
name: 'onesignal',
title: 'Notification',
type: 'onesignal',
},
]
}
To use it you need to define your API Key and APP ID
// .../studio/config/onesignal.json
{
"onesignalApiKey": "exampleKey",
"onesignalAppId": "exampleID"
}