tencent cloud

All product documents
Tencent Push Notification Service
Compatibility with Android P
Last updated: 2024-01-16 17:39:39
Compatibility with Android P
Last updated: 2024-01-16 17:39:39

TLS is enabled by default

Add the xg_network_security_config.xml file in the xml directory under the res directory with the following content:
<?xml version="1.0" encoding="utf-8"?>
<network-security-config>
<domain-config cleartextTrafficPermitted="true">
<domain includeSubdomains="true">182.254.116.117</domain>
<domain includeSubdomains="true">pingma.qq.com</domain>
</domain-config>
</network-security-config>
Add the following configuration to the application node of AndroidManifest:
android:networkSecurityConfig="@xml/xg_network_security_config"

Add and use the Apache HttpClient library

Add the following configuration to the application node of AndroidManifest:
<uses-library android:name="org.apache.http.legacy" android:required="false"/>

Modify compileSdk and targetSdk

Use compileSdkVersion 28 and targetSdkVersion 28 when compiling.
Was this page helpful?
You can also Contact Sales or Submit a Ticket for help.
Yes
No

Feedback

Contact Us

Contact our sales team or business advisors to help your business.

Technical Support

Open a ticket if you're looking for further assistance. Our Ticket is 7x24 available.

7x24 Phone Support