Can anybody tell me how to get the response data from a push notification response. I am currently only able to get data from headers, but $_POST is an empty array. Can anybody push me in the right direction? (I get notifications from google and outlook.)
My notifications file contains code as below:
header('Content-Type: text/html; charset=utf-8');
header("HTTP/1.1 200 OK");
file_put_contents('response-data.txt', serialize($_POST));