When I send notification through the Expo dashboard site, the notification comes even if the application is closed. But I do not post notification from the application with axios. It only comes when the app is open. Could it not be working because I didn’t open the application?
axios.post(
'https://exp.host/--/api/v2/push/send',
{
to: notifyToken,
sound: 'default',
title: 'Yeni Bildirim',
body: 'Seni bekleyen toplam ' + notifyCount + ' okunmamış bildirim var',
_contentAvailable: true
},
{ headers : { accept: 'application/json', 'content-type': 'application/json' }})
.then((res) => {
})
.catch((err) => {
});