Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is the Apple Push Notification service SSL (Sandbox & Production) certificate universal?

I read a lot about certs and watched a WWDC, but should clear for myself and for others next question. When we creating certificates in the developer portal, we see next possibilities: enter image description here

So, what is the purpose of creating only Sandbox certificate instead of Sandbox&Production one? Also there is two fields in app description for certificates.

enter image description here Does it is a rudiment and we can use only S&P certificate or we should also implement development cert?

like image 868
Nik Kov Avatar asked May 23 '18 10:05

Nik Kov


2 Answers

Well just right now every Samsung phone got a push notification with a title of 1 and body of 1.

enter image description here

https://www.theverge.com/2020/2/20/21145130/samsung-find-my-mobile-app-1-notification-galaxy

Why? I guess because the person was testing how remote notifications work. Just that he was using the production certificate and it got sent to every Samsung user.

So it's certainly safer to be using the sandbox version to test things initially with your debug builds ie build that have used your development certificate.

You won't run into an issue when you're working with a tool that you require a given device token e.g. see Push Notification Mocker. But if you give this production certificate to your QA server and QA server sends tries testing out a 'send to all users' notification then such a cluster mess will happen.

like image 58
mfaani Avatar answered Oct 16 '22 09:10

mfaani


Ok, after some investigation, i didn't found cases where needed only Sandbox Certificate. It seems, that it's a rudiment. You can generate only one cert for Sandbox & Production and use only it peacefully :)

like image 8
Nik Kov Avatar answered Oct 16 '22 10:10

Nik Kov