I post this JSON exactly the same in android and postman:
{
"notification":{
"title":"stackoverflow commmunity",
"body":"is awesome"
},
"to":"[mycode]"
}
I define my header in android like this:
urlConn.setRequestProperty("Content-Type", "application/json");
urlConn.setRequestProperty("Authorization", "key=[mykey]");
But I think the header in Android doesn't work and I don't know why because in Postman I get:
Tasks have been queued for a long time