I am always getting 401 error.Please any one could let me know exactly what should be HTTP referrers if i am using my local server. i.e Currently I am using:
I can see several errors:
Contenttype:application/json should be Content-Type: application/json.CURLOPT_SSL_VERIFYPEER => false and CURLOPT_SSL_VERIFYHOST => false are required.You can find many PHP GCM samples that work (for example - here).