I am getting Forbidden message when i try to send push notification to iphone
Web Push is an open standard and you should be able to find documentation and help online with regards to setting up both your server and your browser sides properly.
On the APNs side (which is when I assume you are getting this error), while it is difficult to guess what might be wrong with your push requests to cause this error, here are some pointers to check with your push server:
- make sure you are using the correct APNs endpoints
api.push.apple.com:443
orapi.sandbox.push.apple.com:443
- your push requests are properly constructed HTTP/2 POST requests as documented at Sending notification requests to APNs
- your server's certificates are properly configured
- your push requests are correctly constructed for Web Push as described at Sending web push notifications in web apps and browsers