expo push notificiations

Hello can same one help me how to get expoPushToken after expo build:android
i try getExpoPushTokenAsync not work and getDevicePushTokenAsync also not working

im using

const sendPushNotification = async (token) => {

    const message = {

        to: token,

        sound: "default",

        title: 'Title Test',

        body: 'Test notification',

        data: { data: 'qualche data non so cosa sia' },


    await fetch('https://exp.host/--/api/v2/push/send', {

        method: 'POST',

        headers: {

            Accept: 'application/json',

            'Accept-encoding': 'gzip, deflate',

            'Content-Type': 'application/json',


        body: JSON.stringify(message),



if i use expo app is working fine after build with expo or android not working ?


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