Apple APNs

Apple Push Notification service (APNs) is a certificate required to use Push Notification on an app for iOS. APNs is issued separately for development and for distribution. The expire duration is 365-day for development and is 395-day for distribution, so you should reissue the certificate when it expires. Follow the procedures below to create Apple APNs:

1. Create CSR

Certificate Signing Request (CSR) is required to issue APNs from Apple Developers. Follow the procedures below to create CSR.

        1. Click Keychain Access > Certificate Assistant > Request a Certificate From a Cerificate Authority….
        2. Check User Email Address and Common Name of Certificate Information.
        3. Check Saved to disk and Let me specify key pair information of Request is; then click Continue.
        4. After setting the certificate save location, set the Key Size to 2048 bits and Algorithm to RSA as default on Save > Key Pair Information, then click Continue.
        5. Complete to create the certificate.

2. Create and Download APNs

        1. Log in to Apple Developers and go to Certificates, Identifiers & Profiles > Identifiers to choose an app that requires to issue an APNs. (For creating an app, refer to Step 1-1.)

          1. Click on the Identifiers page to create an App ID.
          2. Click Register a New Identifier > App IDs.
          3. Confirm a Platform, enter the game title in Description, and select Explicit Bundle ID.
            Check Push Notifications and click Continue.
          4. Check the information and click Register to complete creating an App ID.
        2. Click Configure beside Push Notifications. (If the AppId is in use, click Edit.)
        3. Click Development SSL > Create Certificate.
        4. On the Create a New Certificate > Platform page, upload CertificateSigningRequest which is created in Step 1. and click Continue.
        5. Click Download on the Download Your Certificate page. (Production도 동일하게 진행합니다.)

3. Register Key Chain and Create the .p12 file

  1. Double-click the aps_development.cer and aps.cer files to register a key chain. The key chain runs automatically.
  2. Select Apple Development IOS Push Services: Bundle ID and private key, by holding shift and clicking both items, then right click and click Export 2 items... from the shortcut menu.
  3. After you fill a file name in the Save As field, make sure the file format is a Personal Information Exchange (.p12) and click Save without setting a password.

 


Generate Apple Shared Secret key

The Shared Secret key is a 32-digit hexadecimal string. You can create the master shared secret, which is a single code used by all apps, or create an app-specific shared secret for each app. You can use a master shared secret for some apps and use the app-specific shared secrets for the others. 

Master Shared Secret

  1. Log in to the App Store Connect.
  2. Go to the Users and Access > Shared Secret and create it.

  • When you create a new shared secret, all apps within your organization that use the shared secret must use the new value when checking for the automatic renewal of subscriptions.

 

AppSpecific Shared Secret

  1. Log in to the App Store Connect.
  2. Click My Apps to select an [app].
  3. Go to the General > App Information > AppSpecific Shared Secret and create it.

  • You may need to use an app-specific shared secret if you want to keep that app’s code private or transfer this app to another developer account.
  • You no longer can use a master shared secret for the app if an app-specific shared secret is used for this app.
  • It is impossible to delete an app-specific shared secret. It only can be created again.

 

Sign in with Apple Setup for Other Platforms

  1. Click Account > Certificates, Identifiers & Profiles > Identifiers on the Apple Developers menu and confirm Bundle ID.

  2. Click Account > Certificates, Identifiers & Profiles > Keys on the Apple Developers menu and click the +buttonbutton.

  3. Enter the Key Name field and select Sign in with Apple. Then, click Configure.

  4. On the Configure Key page, select an app Id from Primary App ID that you want to use Sign in with Apple, and click Save.

  5. Click Register on the Register a New Key page.

  6. On the Download Your Key page, confirm the Key ID and click Download to create and download the key.

* You can download the key file only once, so keep the key file carefully.

  1. Open the key file you downloaded and confirm the Private Key.

  2. Confirm the TeamId on the top-right of Account > Certificates, Identifiers & Profiles page.

  3. Click Account > Certificates, Identifiers & Profiles > Identifiers on the Apple Developers menu and click the +buttonbutton.

  4. On the Register a new identifiers page, select Services IDs and click Continue.

  5. On the Register a Services ID page, fill in the Description field (such as an app title) and Identifier field. Then, click Continue.

  • In the Identifier field, enter an easy-to-recognize identifier which is added characters to the bundle ID, such as {Bundle ID}.siwa.

  1. Click Register to complete registering Services ID.

  2. Click Services IDs you registered and select Sign in with Apple on the Edit your Services ID Configuration page. Them click Configure.

  3. On the Web Authentication Configuration window, select an app Id from Primary App ID that you want to use Sign in with Apple. If you’re applying Sign in with Apple to the Windows platform, fill each field of Website URLs as follows.

  • Domains and Subdomains: withhive.com
  • Return URLs: https://www.withhive.com

  1. Click Next.

  2. Confirm your configuration on the Confirm your web authentication configuration page and click Done.

  3. On the Edit your Services ID Configuration, click Continue > Save to complete Sign in with Apple setup.

 


Enabling Game Center

To enable Game Center, Apple‘s gaming network, follow the procedures below on Apple Developers.

  1. Go to the Apple Developers > Certificates, Identifiers & Profiles > Identifiers and sign in.
  2. Click your project’s App IDs and check and select Game Center on the Capabilities list.
  3. Go to the App Store Connect and sign in.
  4. Click your project on the App menu and select Game Center on the App Store page.