Currently, the message push plugin in Unity only supports push to Android (including manufacturer channels) and iOS devices.
iOS
Android
Before integrating the message push plug-in, you must apply for an APNs Push Certificate from Apple and then upload the Push Certificate to the Chat console. Afterward, follow the quick integration procedure to complete the setup.
Operation Steps
Step 1: Apply for an APNs Certificate
Enable Remote App Push
1. Log in to the Apple Developer Center website, click Certificates, Identifiers & Profiles or Certificates, IDs & Profiles in the sidebar, and enter the Certificates, IDs & Profiles page.
2. Click + on the right of Identifiers.
3. You can refer to the following procedure to create a new AppID, or add the Push NotificationService to your original AppID.
Note
Note: The Bundle ID of your App cannot use wildcard *, otherwise the Remote Push Service will be unavailable.
4. Check App IDs, click Continue to proceed to the next step.
5. Select App, click Continue to proceed to the next step.
6. Configure Bundle ID and other info, then click Continue to proceed to the next step.
7. Check Push Notifications and enable Remote Push Service.
Generating a Certificate
1. Select your AppID, choose Configure.
2. In the Apple Push Notification service SSL Certificates window, you can see two SSL Certificates, respectively for remote push certificates in development environment (Development) and production environment (Production), as shown below:
3.
First select
the development environment (Development) Create Certificate, the system will prompt you to provide a Certificate Signing Request (CSR).
4. On your Mac, open Keychain Access, select Keychain Access > Certificate Assistant > Request a Certificate From a Certificate Authority (Keychain Access - Certificate Assistant - Request a Certificate From a Certificate Authority).
5. Enter the user email address (your mailbox), common name (Your Name or company name), select save to disk, click continue, and the system will generate a *.certSigningRequest file.
6. Go back to the webpage on the Apple Developer website in Step 3, click Choose File to upload the generated *.certSigningRequest file.
7. Click Continue to generate the push certificate.
8. Click Download to download the Development SSL Certificate for the development environment locally.
9. Repeat steps 1 - 8 to download the Production SSL Certificate for the production environment to local.
Note
The certificate in the production environment is a merged certificate of development (Sandbox) and production (Production), which can be used as both a development and production environment certificate.
10. Double-click to open the downloaded SSL Certificate for the development and production environment, and the system will import it into the keychain.
11. Open the keychain access app, go to Login > My Certificates, right-click to export the newly created P12 files for the development environment (Apple Development IOS Push Service) and production environment (Apple Push Services).
Note
When saving the P12 file, ensure to set a password for it.
Upload certificate name should be in English (do not use parentheses or other special characters).
Upload certificate needs to be set with password. Passwordless will not receive push notifications.
Set the certificate for App Store release to production environment, otherwise unable to receive push notifications.
Uploaded p12 certificate must be your own real and valid applied certificate.
5. After generation of pending certificate information, record the cert ID.
Operation Steps
Step 1: Register Application to Manufacturer Push Platform
Offline push requires registering your own application to various manufacturers' push platforms to obtain AppID and AppKey parameters such as, enabling offline push functionality. Currently supported domestic mobile manufacturers include: Xiaomi, Huawei, honor, OPPO, VIVO, Meizu, with overseas support for Google FCM.
Step 2: Chat Console Configuration
Log in to Tencent Cloud Chat console, go to Push Management > Access Setting feature section, add push certificates from various manufacturers, and configure the AppId, AppKey, AppSecret and other parameters obtained from step 1 for the added certificates.
Note:
Note: For the click subsequent actions option, if you need to use the click redirect capacity provided by this Plugin, keep default values unchanged, usually `open a specified page within the app` with default configuration.
If you need to use the report statistics feature, keep this item unchanged.
Xiaomi
Huawei
OPPO
vivo
Meizu
Honor
Google FCM
Vendor Push Platform
Chat Console Configuration
Vendor Push Platform
Chat Console Configuration
Note:
Client ID corresponds to AppID, and Client Secret corresponds to AppSecret.