Safari on Desktop
Step-by-step guide to enabling Web Push for Safari web browser on Desktop devices
Introduction
Before you start ensure you have the following:
Have access to a Mac computer
Have an Apple Developer Account
The below steps walk you through generating the required Web Push security certificates and uploading them to the platform.
You must create a separate web push certificate for each site/domain that opts in subscribers. Re-using certificates across multiple domains will result in fewer notifications delivered and higher unsubscribe rates.
Step 1: Create a Certificate Request (CSR)
On a Mac computer Open the
Keychain Accessapplication and click onCertificatesunder theCategoryleft navigation section.Within the
Keychain Accessdrop down menu, selectKeychain Access>Certificate Assistant>Request a Certificate from a Certificate Authority.In the Certificate Information window, enter the following information:
In the
User Email Addressfield, enter your email address.In the
Common Namefield, create a name for your private key (e.g. Company Name Web Push).The
CA Email Addressfield should be left empty.In the
Requestgroup, select theSaved to diskoption.
Click
Continuewithin Keychain Access and save the CSR to disk to complete this step.
Step 2: Add a Website Push ID
If you are renewing an existing certificate you can skip this step and move to Step 3 since the Website Push ID should already exist within your Apple developer account.
Login to your company's Apple Developer Console account.
Click on
Certificates, IDs, and Profilesin the left navigation bar.Choose
Identifiersin the left navigation bar.In the top-right dropdown choose
Website Push IDand then click the+button next to theIdentifiersheader.Choose
Website Push IDsfrom the list of options and press theContinuebutton.Enter a description. Eg:
Pushy Web PushEnter an identifier. Eg:
web.com.YOUR_COMPANY_NAME.webpushClick the
Continueand thenRegisterbutton.
Step 3: Generate a Web Push Certificate
Click on
Certificatesin the left nav and press the+sign next to theCertificatesheader..Choose
Website Push ID Certificatefrom the list of Production certificate options and then clickContinue.Select the Website Push ID that was created in the previous step and then click
Continue.Click the
Choose Filebutton, browse for the CSR file that we created in the first step, and clickContinue.The next screen informs you that your certificate is ready. Click
Downloadto store the certificate on your computer.
Step 4: Generate the .p12 Certificate
Navigate to the certificate you saved on your computer and double click it to install it to the
Keychain Accessapplication.Open the
Keychain Accessapplication and click onCertificatesunder theCategoryleft navigation section.Right click on the installed Website Push ID certificate and choose
Export.In the save dialog, choose a filename (or leave the default), choose the
.p12file format, and click theSavebutton.You will be prompted to enter a password - leave both boxes empty and click
OK.Click
Allowto save the p12 certificate to your computer.
Step 5: Upload the Certificate via the Platform
Log in to the platform.
In the left navigation choose
Settingsand thenOverview.Ensure all subdomains that users will be prompted on are in the
SDK Allowed Domainslist.Scroll down to the
Send Integrationssection and click theEditbutton.Enable the
WEBswitch and then enter theWebsite Push IDyou created in Step 2. (Eg: "web.com.example")Upload the
p12file from your computer and only enable thePass Phraseswitch if you set a password when creating the certificate.Click the
Submitbutton at the bottom of the page to finish setting up Safari Support.Note: These changes may take up to 1 hour to take effect.

Last updated