This question is an exact duplicate of:
I am setting up Safari push notifications and they send a response to a endpoint that they choose.
I need to set up a web service backend to account for this.
They POST a token to:
/v1/devices/<deviceToken>/registrations/<websitePushId>
How do I set up my backend, using rewrites, or something... to capture the deviceToken
and websitePushId
?
I have a php script to add this info to a database. I just don't know how to get the POST info, and those two parameters into that script.
Any ideas?
</div>