How to obtain Push Credentials for your iOS Dating App | Appy Pie Help

How to obtain Push Credentials for your iOS Dating App?

By Abhinav Girdhar | Updated on June 8, 2022, 2:01 pm

Follow the steps below to obtain push credentials for your iOS Dating App:

Step 1. Go to Twilio. If you have a Twilio account, login, else signup.
Step 2. Click Explore Products under the Develop tab.

Step 3. Under All Products, click Programmable Communications.

Step 4. Click Notify in the Programmable Communications section.

Step 5. Under the Notify dropdown menu, click Services.

Step 6. Click the + icon in the Services section.

Step 7. Enter a name for your Notify Service, then click Create.
Step 8. Once your Notify service is created, you will find your Service ID and other details on the Configure page. Now, you need to create an APN credential to select a value for the APN Credential SID field. Click here to create an APN credential.

Note: If you have already created an APN credential, then you can select the APN credential SID from the dropdown menu. Step 9. Under Mobile Push Credentials, click the + icon.  Step 10. A popup will open where you need to provide the required details to create a new credential.

Step 11. Enter a name in the Friendly Name field and select APN Push Credentials as the credential type from the dropdown menu. 

Step 12.
Provide the certificate and private key in the respective fields. To create the certificate and private key, follow the below steps:                                                                  


  1. Create an iOS Push Services (.p12) file. To create a p12 file, refer to How to Make a p12 File for iOS. The p12 file will be used for extracting the certificate key and private key.


  2. To create a certificate key, open Terminal and run openssl pkcs12 -in cred.p12 -nokeys -out cert.pem -nodes command. Once done, cert.pem file will be generated on your system. 

    Note: Before running the command, replace the name of the file in the command with the name of your p12 file. For example: If you have saved your p12 file as app_notification.p12, then replace cred.p12 in the command with app_notification.p12. Similarly, follow the same replacement in steps (3 & 4) before running the command.
  3. To create a private key, run openssl pkcs12 -in cred.p12 -nocerts -out key.pem -nodes command in terminal. Once done, key.pem file will be generated on your system.        

  4. Run openssl rsa -in key.pem -out key.pem in terminal to process the RSA key.

  5. Open the generated cert.pem file and key.pem file in the text editor.

  6. Exclude anything outside of "-----BEGIN CERTIFICATE-----" and "-----END CERTIFICATE-----" boundaries and outside of "-----BEGIN RSA PRIVATE KEY-----" and "-----END RSA PRIVATE KEY-----" boundaries and copy the rest.


Step 13. Paste the copied keys in the certificate and private key field, and tickmark the Sandbox checkbox. Once you have provided all the details, click the Create button.

Step 14.
Once your APN credential is created, you will find your Credential SID in the Properties section. Copy the Credential SID, and then click Services under the Notify menu. 
Step 15. In the Services section, click the Name of the service you created.

Step 16. Open the APN Credential SID dropdown menu.

Step 17. Select the APN Credential SID value that you created in the above steps from the dropdown menu, and then click Save.
Step 18. Paste the copied Credential SID in the respective field on the creator software.


Follow our video tutorial below we will explain how to obtain Push Credentials for your iOS Dating App :


 

Share this :

Was this article helpful?