Using FCM with Capacitor and trying to implement push notifications: Works fine in : Android IOS development IOS production only receive
Does not work: IOS production sending notifications
This is my post request to https://fcm.googleapis.com/fcm/send":
const body = {
to: token,
notification: {
title: "Notification",
body: `new notification`,
sound: "default",
},
data: {
sensitiveData: sensitiveData,
},
content-available: true,
priority: "high",
};
await fetch(FCMUrl, {
method: "POST",
headers: {
"Content-Type": "application/json",
Authorization: `key=${process.env.REACT_APP_FIREBASE_SERVICE_KEY}`,
},
body: JSON.stringify(body),
});
I have uploaded both development and production certificates to firebase console. Any ideas?