Notification does not appear when application is closed

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) => {
                        
    });

Hi @gundogduyakici- the notification receipt should have more information on the error, if you take a look at that

Is this on Android or iOS? And is it a standalone app or in the Expo client?

Yes @charliecruzan Expo Client not apk.

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.