To enable push notification service for the Safari browser you need a .P12 certificate. Here are the details to create and upload the certificate from your apple account. It will take you a few minutes to create.
- A Paid Apple Developer Subscription
- Mac System.
Below are the steps, you will need to perform.
Step 1: Make a request for a safari certificate
Step 2: Request from KeyChain Access
Step 3: Creating a Web Push Certificate
Step 4: Uploading the .p12 file(web push certificate) on Truepush
Make A Request For a Certificate
1.1 Go to https://developer.apple.com/account and login into the account.
1.2 Once you are logged into your account, click on the “Certificates, ID & Profiles” tab.
1.3 Click on the “Certificates +” icon.
1.4 Then you need to scroll down on the next page and select Website Push ID Certificate
1.5 Create a new certificate or click on an existing one from the website Push ID field. Once you are done, click on “continue’.
Request From Keychain Access
2.1 In your Mac system, open your “Keychain Access”.
2.1 Then click on Request a Certificate from a Certificate Authority
2.2 Give a common name(your certificate name) and select ‘Saved to disk”. Click on “Continue“.
2.3 Create a new folder and save the file.
2.4 Once you save it, it should look something like the below image.
Creating A Web Push Certificate
3.1 Come back to the “Create a New Certificate” page we left before in Step 1 and upload the certificate that you downloaded. Then, click on “Continue“.
3.2 Once you come to the next page, you will see a screen like below. Click on “download“.
3.3 Save in the same folder(optional) as you did before. You should be able to see the screen like below.
3.4 Click on the Certificate and open with Keychain Access
3.5 In KeyChain Access, you should be able to see your “created Private Key” and “Certificate paired”. Select both of them and right-click. You will see a screen as shared below. Click on Export 2 Items.
3.6 Select the folder like before and save your certificate. This is your .p12 certificate that you need to upload to the Truepush account.
3.7 While saving, it will prompt you for a password to safeguard your certificate(for .p12 certificate). This is an optional action but we highly recommend you to have a password for security reasons.
3.7.1 Next, it will prompt you for your system password twice.
3.8 Once done, you should be now getting the final .p12 certificate to upload on the Truepush account.
Uploading The .p12 File(Web Push Certificate) On Truepush
4.1 Upload the .p12 certificate by clicking the choose file. If you have kept a password for the .p12 file while creating as suggested, please enter the password and click Save.
Boom! Your Safari Browser notification will start working.
PS: Please see that for safari, only 2-way notifications work. So when you select a default option to show in the opt-in type. For safari, we will have Bell Icon by default.
Review us on TrustRadius.