{"id":722,"date":"2021-07-23T12:36:42","date_gmt":"2021-07-23T12:36:42","guid":{"rendered":"https:\/\/ssdsunucum.com\/blog\/how-to-set-up-ios-push-notifications\/"},"modified":"2021-07-23T12:36:42","modified_gmt":"2021-07-23T12:36:42","slug":"how-to-set-up-ios-push-notifications","status":"publish","type":"post","link":"https:\/\/ssdsunucum.com\/blog\/how-to-set-up-ios-push-notifications\/","title":{"rendered":"How to Set Up iOS Push Notifications"},"content":{"rendered":"<\/p>\n<div class=\"col-md-9\">\n<div class=\"flex-column flex-md-row article-header\">\n<div id=\"versioned-article-header\">\n<p class=\"valid-version-info\"><em>Valid for versions 88 through the latest version<\/em><\/p>\n<\/div>\n<div id=\"version-select-group\" aria-label=\"select versions\">\n<h4>Version:<\/h4>\n<h4>82<\/h4>\n<h4>88<\/h4>\n<\/div><\/div>\n<hr>\n<h2 id=\"overview\">Overview<\/h2>\n<p>This tutorial explains how to configure your WHM account so that users can receive push notifications for iOS\u00ae mail. We introduced this feature in cPanel &#038; WHM version 64. When users enable push notifications, they receive notifications when new messages arrive.<\/p>\n<p>You <strong>must<\/strong> export the Apple\u00ae Push Notification service (APNs) key, and then install the key on your WHM server to enable push notifications.<\/p>\n<\/p>\n<div class=\"callout callout-warning\">\n<div class=\"callout-heading\">Important:<\/div>\n<div class=\"callout-content\">\n<ul>\n<li>\n<p>You <strong>cannot<\/strong> create APNs certificates in macOS Server\u00ae version 5.7.1 and later. The macOS\u00ae Mojave 10.14 operating system requires version 5.7.1 or later. For more information, read Apple\u2019s macOS Server 5.7.1 upgrade documentation. You can request that Apple includes this feature in macOS Server 5.7.1 on Apple\u2019s feedback forum.<\/p>\n<\/li>\n<li>\n<p>You <strong>must<\/strong> open TCP outbound traffic for port 2195 if your firewall restricts this port. For more information, read our How to Configure Your Firewall for cPanel &#038; WHM Services documentation.<\/p>\n<\/li>\n<\/ul><\/div>\n<\/div>\n<div class=\"callout callout-info\">\n<div class=\"callout-heading\">Note:<\/div>\n<div class=\"callout-content\">\n<p>Create, export, and install APNs keys on your macOS device.<\/p>\n<\/p><\/div>\n<\/div>\n<h2 id=\"receive-push-notifications-for-ios-mail\">Receive push notifications for iOS mail<\/h2>\n<div class=\"accordion-wrapper\">\n<div class=\"accordion-item\">\n<p>        Create an APNs key.<\/p>\n<div class=\"collapse\" id=\"create-an-apns-key-1626990176700677751\">\n<div class=\"card card-body\">\n<p>To create the APNs key, perform the following steps:<\/p>\n<ol>\n<li>\n<p>Open the Apple <em>App Store<\/em> application (app) via <em>Finder<\/em> (<em>Applications &gt;&gt; App Store<\/em>). Sign in when the system prompts you.<\/p>\n<\/li>\n<li>\n<p>Search for <em>macOS Server<\/em>.<\/p>\n<\/li>\n<li>\n<p>Click the <em>macOS Server<\/em> icon.<\/p>\n<figure>\n<img src=\"https:\/\/ssdsunucum.com\/blog\/wp-content\/uploads\/2021\/07\/searchmacosserver.png\" width=\"300\" title=\"searchmacosserver\"><br \/>\n<\/figure>\n<\/p>\n<\/li>\n<li>\n<p>Click <em>$19.99<\/em>, then click <em>Buy App<\/em>.<\/p>\n<\/li>\n<li>\n<p>Click <em>Open<\/em>.<\/p>\n<\/li>\n<li>\n<p>Select <em>This Mac<\/em> from the <em>Choose A Mac<\/em> menu and click <em>Continue<\/em>.<\/p>\n<figure>\n<img src=\"https:\/\/ssdsunucum.com\/blog\/wp-content\/uploads\/2021\/07\/chooseamac.png\" width=\"300\" title=\"chooseamac\"><br \/>\n<\/figure>\n<\/p>\n<\/li>\n<li>\n<p>Select the <em>Apple Push Notifications (APN)<\/em> checkbox from the <em>Settings<\/em> menu.<\/p>\n<\/li>\n<li>\n<p>Enter your credentials.<\/p>\n<\/li>\n<\/ol><\/div>\n<p>\n    <\/div>\n<\/div>\n<div class=\"accordion-item\">\n<p>        Export APNs key information.<\/p>\n<div class=\"collapse\" id=\"export-apns-key-information-1626990176701278763\">\n<div class=\"card card-body\">\n<p>To export the APNs key, perform the following steps:<\/p>\n<ol>\n<li>\n<p>Open the <em>Keychain Access<\/em> app via <em>Finder<\/em> (<em>Applications &gt;&gt; Utilities &gt;&gt; Keychain Access<\/em>).<\/p>\n<\/li>\n<li>\n<p>Select <em>System<\/em> from the <em>Keychains<\/em> menu and then select <em>Keys<\/em> from the <em>Category<\/em> menu.<\/p>\n<\/li>\n<li>\n<p>Press the <em>control<\/em> key and left-click (or right-click) the <code>com.apple.servermgrd.apns.mail<\/code> key (<\/p>\n<figure>\n<img src=\"https:\/\/ssdsunucum.com\/blog\/wp-content\/uploads\/2021\/07\/apspcert.png\" width=\"300\" title=\"apspcert\"><br \/>\n<\/figure>\n<p>) or certificate bundle (<\/p>\n<figure>\n<img src=\"https:\/\/ssdsunucum.com\/blog\/wp-content\/uploads\/2021\/07\/applemailbundle.png\" width=\"300\" title=\"applemailbundle\"><br \/>\n<\/figure>\n<p>).<\/p>\n<\/li>\n<li>\n<p>Select <em>Export \u201ccom.apple.servermgrd.apns.mail\u201d\u2026<\/em><\/p>\n<\/li>\n<li>\n<p>Click <em>Save<\/em> to save the APNs key to your desired location.<\/p>\n<ul>\n<li>\n<p>You may need to enter your user credentials.<\/p>\n<\/li>\n<li>\n<p>We <strong>strongly<\/strong> recommend that you password protect this file because it contains sensitive information.<\/p>\n<\/li>\n<\/ul>\n<\/li>\n<\/ol><\/div>\n<p>\n    <\/div>\n<\/div>\n<div class=\"accordion-item\">\n<p>        Install the APNs key.<\/p>\n<div class=\"collapse\" id=\"install-the-apns-key-1626990176701462544\">\n<div class=\"card card-body\">\n<p>To install the APNs key on WHM, perform the following steps:<\/p>\n<ol>\n<li>\n<p>Navigate to WHM\u2019s <em>Manage Service SSL Certificates<\/em> interface (<em>WHM &gt;&gt; Home &gt;&gt; Service Configuration &gt;&gt; Manage Service SSL Certificates<\/em>).<\/p>\n<\/li>\n<li>\n<p>Select the <em>iOS Mail Push Notifications<\/em> tab.<\/p>\n<\/li>\n<li>\n<p>Click <em>Upload PKCS #12 archive<\/em>.<\/p>\n<\/li>\n<li>\n<p>Select the APNs key file.<\/p>\n<\/li>\n<li>\n<p>If the <em>Calendars and Contacts<\/em> feature is installed on the server, select <em>iOS Push for CalDAV<\/em> to use the certificate for calendars and contacts or <em>iOS Push for Mail<\/em> to use the certificates for mail.<\/p>\n<\/li>\n<li>\n<p>Click <em>Install<\/em>.<\/p>\n<\/li>\n<\/ol><\/div>\n<p>\n    <\/div>\n<\/div>\n<div class=\"accordion-item\">\n<p>        Configure the device.<\/p>\n<div class=\"collapse\" id=\"configure-the-device-1626990176702075198\">\n<div class=\"card card-body\">\n<p>To configure your device to receive push notifications, perform the following steps:<\/p>\n<ol>\n<li>Tap the <em>Settings<\/em> icon on your iOS device.<\/li>\n<li>Tap <em>Passwords &#038; Accounts<\/em>.<\/li>\n<li>Tap <em>Fetch New Data<\/em>.<\/li>\n<li>If the <em>Push<\/em> toggle is currently set to <em>Off<\/em>, tap it to set it to <em>On<\/em>.<\/li>\n<li>Set your Email, Calendar, and Contact accounts to <em>Push<\/em> and <em>Fetch<\/em> as desired.<\/li>\n<li>After you finish setting up Push notifications, tap <em>Accounts<\/em> and then tap the <em>Home<\/em> button to close the interface.<\/li>\n<\/ol>\n<div class=\"callout callout-info\">\n<div class=\"callout-heading\">Note:<\/div>\n<div class=\"callout-content\">\n        NOTE: Older phones might not immediately display the proper push settings. Close and repoen the <em>Settings<\/em> app to confirm your changes.\n    <\/div>\n<\/div>\n<p>To ensure that the device can receive push notifications, you <strong>must<\/strong> restart the <em>Mail<\/em> app. To do this, perform the following steps:<\/p>\n<ol>\n<li>Open the <em>Mail<\/em> app on your iOS device.<\/li>\n<li>Double-tap the <em>Home<\/em> button to display a gallery of applications.<\/li>\n<li>Swipe up to close the <em>Mail<\/em> app. For more information about how to close an app, read Apple\u2019s\u00ae Force an app to close documentation.<\/li>\n<li>Re-open the <em>Mail<\/em> app.<\/li>\n<li>Swipe down to perform a manual fetch.<\/li>\n<\/ol>\n<div class=\"callout callout-info\">\n<div class=\"callout-heading\">Note:<\/div>\n<div class=\"callout-content\">\n<ul>\n<li>\n<p>If the above steps do not successfully initiate push notifications, you may need to restart your device.<\/p>\n<\/li>\n<li>\n<p>To enable push notifications for the default email account, you <strong>must<\/strong> enter the username <code>@<\/code> the server hostname on the client device, not <code>@<\/code> the account\u2019s domain name.<\/p>\n<ul>\n<li>\n<p>For example, enter <code>username@server.hostname.tld<\/code>, not <code>username@example.com<\/code>.<\/p>\n<\/li>\n<li>\n<p>For more information, read our <em>Email Accounts<\/em> documentation.<\/p>\n<\/li>\n<\/ul>\n<\/li>\n<\/ul><\/div>\n<\/div><\/div>\n<p>\n    <\/div>\n<\/div>\n<div class=\"accordion-item\">\n<p>        Lock screen notifications.<\/p>\n<div class=\"collapse\" id=\"lock-screen-notifications-1626990176702327670\">\n<div class=\"card card-body\">\n<p>You can enable your device to display notifications from select persons on a locked screen. To do this, perform the following steps:<\/p>\n<ol>\n<li>\n<p>Open the <em>Mail<\/em> app.<\/p>\n<\/li>\n<li>\n<p>Tap <em>Mailboxes<\/em> <img src=\"https:\/\/ssdsunucum.com\/blog\/wp-content\/uploads\/2021\/07\/mailboxes.png\" width=\"64\" title=\"mailboxes\"> in the top left corner.<\/p>\n<\/li>\n<li>\n<p>Tap the information <img src=\"https:\/\/ssdsunucum.com\/blog\/wp-content\/uploads\/2021\/07\/informationsymbol.png\" width=\"20\" title=\"informationsymbol\"> symbol from the VIP menu.<\/p>\n<\/li>\n<li>\n<p>Tap <em>Add VIP\u2026<\/em><\/p>\n<\/li>\n<li>\n<p>Select the contacts from whom you wish to receive notifications on a locked screen to the VIP list.<\/p>\n<\/li>\n<\/ol><\/div>\n<p>\n    <\/div>\n<\/div>\n<\/div>\n<h2 id=\"version\">Version<\/h2>\n<p>Specific attributes of this tutorial may vary with future Apple product versions. We used the following versions to capture this document\u2019s screenshots:<\/p>\n<ul>\n<li>\n<p>OS X El Captain \u2014 10.11.6<\/p>\n<\/li>\n<li>\n<p>iOS \u2014 10.2.1<\/p>\n<\/li>\n<li>\n<p>App Store \u2014 2.1<\/p>\n<\/li>\n<li>\n<p>Server \u2014 5.2<\/p>\n<\/li>\n<li>\n<p>Keychain Access \u2014 9.0<\/p>\n<\/li>\n<\/ul><\/div>\n","protected":false},"excerpt":{"rendered":"<p>Valid for versions 88 through the latest version Version: 82 88 Overview This tutorial explains how to configure your WHM account so that users can receive push notifications for iOS\u00ae mail. We introduced this feature in cPanel &#038; WHM version 64. When users enable push notifications, they receive notifications when new messages arrive. You must &hellip;<\/p>\n","protected":false},"author":1,"featured_media":723,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[1],"tags":[],"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/ssdsunucum.com\/blog\/wp-json\/wp\/v2\/posts\/722"}],"collection":[{"href":"https:\/\/ssdsunucum.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ssdsunucum.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ssdsunucum.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/ssdsunucum.com\/blog\/wp-json\/wp\/v2\/comments?post=722"}],"version-history":[{"count":0,"href":"https:\/\/ssdsunucum.com\/blog\/wp-json\/wp\/v2\/posts\/722\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/ssdsunucum.com\/blog\/wp-json\/wp\/v2\/media\/723"}],"wp:attachment":[{"href":"https:\/\/ssdsunucum.com\/blog\/wp-json\/wp\/v2\/media?parent=722"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ssdsunucum.com\/blog\/wp-json\/wp\/v2\/categories?post=722"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ssdsunucum.com\/blog\/wp-json\/wp\/v2\/tags?post=722"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}