Painted levels: being fostered fostered fostered

Tags: “iOS” “AdHoc” “push


1. About iOS push certificates

IOS Push is divided into Development environment and production environment. The type of Push certificate corresponds to APNs Development iOS and Apple Push Service respectively. If Push Notifications is checked in the Edit Your App ID Configuration after the AppId is created in the developer account, you can configure the testing, production Push certificates directly under this option.

The push certificate is used by the App server. The service server interacts with apple’S APNs with the push certificate and push message to complete the push of service messages. As you can see from the above process, creating push certificates mainly requires an AppId + CSR file.

2. About iOS APP packaging certificate

From the page for creating certificates, you can see that the created certificates are classified into two types: for APP development, certificates are compiled and packaged, and certificates are also developed and produced. A type of certificate that provides services for the APP, such as push certificates, can also be created here.

Note: One of the options is iOS Distribution (App Store and Ad Hoc).

Create a development certificate:

As you can see from the procedure above, to create a certificate to compile the package, you only need to upload a CSR file without specifying any additional information.

3. About Profiles

In APP development, a Provisioning Profile is created for both development and release. There are different types of profiles:

As you can see from the steps above, the information required to create a Provisioning Profile for AdHoc is an AppId, the appropriate packaging certificate (Distribution type), and the selection of devices on which the APP can be installed. So, it’s the description file that links the AppID, certificate, APP, and device together, and the push certificate has nothing to do with the packaged certificate. For details about how to install files, certificates, and apps, see article iOS Signature Mechanism

4. Selection of certificate when compiling package

If you want to do the final online environment push process test before releasing the APP, you can’t directly install the production certificate and description file packaged with the official release on the iOS device. If you want to test the online environment push, you can only choose the way of AdHoc. If you load the device directly with Xcode, you can select the description file of AdHoc in the project configuration, compile and run it on the real computer (it will not run smoothly to the application interface until the application crashes naturally), and then push test can be carried out after loading.

If you select a proxy website for distribution and need to type an IPA package, select Product -> Archive -> distribute in Xcode. The following interface is displayed:

Ipa packaging to the real machine, can be tested.


Recommended articles:

Swift 5.1 (9) – Struct and class Swift implement an abstraction layer compatible with iOS, tvOS and OSX iOS Password AutoFill iOS add click events to UILabel add animation to view with SwiftUI Swift 5.1 (7) – Closure iOS App startup optimization (3) — make a tool to monitor the App startup Time iOS App startup optimization (2) — use the “Time Profiler” tool to monitor the App startup Time iOS App startup optimization (a) – to understand the App startup process qiwu Weekly