You should put the URL outside the aps
dictionary:
{
"aps" : {
"alert" : "<Your message>",
"badge" : <your badge>,
"sound" : "default"
},
"url" : "http://www.some.url.com"
}
I don't know php
, so I can't give you the exact code.