I’m trying to configure iOS push notifications in our React Native app, but receiving MISSING_PROVIDER_SUPPORT
error.
The provider was configured here:
The RN library was configured and I’m triggering like this:
await Courier.sendPush({
authKey: 'myAuthKey',
userId: 'my@email.com',
title: 'Chirp Chrip!',
body: 'Hello from Courier 🐣',
providers: [CourierProvider.APNS],
});
The request received:
{
"message": {
"to": {
"user_id": "my@email.com"
},
"content": {
"title": "Chirp Chrip!",
"body": "Hello from Courier 🐣"
},
"routing": {
"channels": [
"apn"
],
"method": "all"
}
}
}
The error:
{
"reason": "Information required by the provider was not included.",
"type": "MISSING_PROVIDER_SUPPORT"
}
What am I missing here?