Hello!
I try to send expo token to custom server use fetch
in emulator on android studio works well, but when i build apk file, nothing hepend
there code, i use expo
return fetch(PUSH_REGISTRATION_ENDPOINT, {
method: 'POST',
headers: {
'Accept': 'application/json, text/plain, */*',
'Content-Type': 'application/json'
},
body: JSON.stringify({dataObj}),
}).then((response) => response.json()).then((responseJsonFromServer) =>{
alert("Connect");
if(responseJsonFromServer.thx == 'thx'){
alert("Data added");
}
//console.log(responseJsonFromServer);
}).catch((error) =>{
console.error(error);
});