This document describes how to quickly integrate TPNS into your iOS application. You can use the local tool to configure TPNS for your application in just a few clicks with no code integration required.
Upload the push certificate on the Configuration Management page. You can get the push certificate as instructed in Getting Certificate.
After completing the above steps, click "Quick Integration" to download the quick integration tool.
Decompress the package and double-click TPNS Smart Tool.
The message "Unable to open TPNS Smart Tool" will be displayed.
Go to "System Preferences" > "Security & Privacy" > "General" and click "Open Anyway".
Enter the system password as prompted to confirm the operation and click "Open Anyway" again after the confirmation. The "Open" button will be displayed.
Install and open "TPNS Smart Tool" and perform the following operations:
Click "Start Integration".
AccessKey of the current application (you can get them on the Configuration Management page of the application in Product Management).
Select the programming language (Objective-C or Swift) used by your Xcode project.
Upload your Xcode project file (.xcodeproj).
Click Quick Integration and wait for the integration result.
Objective-Cas the programming language and the following prompt is displayed, the SDK is successfully integrated.
Swiftas the programming language and the following prompt is displayed, the SDK is successfully integrated.
Open the application project configuration and check whether the current project certificate supports push; and if not, process the certificate as prompted by Xcode.
Connect your iPhone to Xcode, install the application, and view the logs in the console. If a log similar to the one below is displayed, the client has properly integrated the SDK.
[TPNS]Current device token is 80ba1c251161a397692a107f0433d7fd9eb59******85030f1b913625a9dab [TPNS]Current XG token is 05da87c0ae597******a9e08d884aada5bb2
If the token cannot be found, please check the error code returned by the registration API and troubleshoot as instructed in Error Codes.