In case of OPPO channel message push failure, refer to the following steps for troubleshooting:
Make sure that you have successfully integrated OPPO PUSH by following the instructions in Access OPPO Push. The main steps include:
- Download the library of OPPO Push SDK and import it to project;
- Add the Push - OPPO component;
- Configure
AndroidManifest.xml
in the project; - Integrate the
MpaaSNcActivity
class.Note:- Register an account and apply for accessing the push service in OPPO Developer Platform with reference to Opening OPPO PUSH Service Guideline.
- mPaaS doesn’t provide the OPPO Push SDK library (mcssdk-2.xx.jar), please go to OPPO SDK Document Center to download the SDK and integrate it to the main project.
Check if the SDK version corresponding to OPPO PUSH mcssdk-2.xx.jar is correct.
- For mPaaS baseline 10.1.68.29 or later versions, please use OPPO PUSH SDK V2.1.0 (mcssdk-2.1.0.jar).
- For mPaaS baseline earlier than 10.1.68.29, please use OPPO PUSH SDK V2.0.2 (mcssdk-2.0.2.jar).
Check if the
service
classes inAndroidManifest.xml
are correctly configured. Theservice
classes required vary with the SDK version.- For OPPO PUSH SDK V2.0.2 (mPaaS baseline earlier than 10.1.68.29), the corresponding
service
classes arecom.heytap.mcssdk.PushService
andcom.heytap.mcssdk.AppPushService
. The configuration is as follows:<uses-permission android:name="com.coloros.mcs.permission.RECIEVE_MCS_MESSAGE" />
<uses-permission android:name="com.heytap.mcs.permission.RECIEVE_MCS_MESSAGE"/>
<application>
<!-- V2.0.2 Add Service START-->
<service
android:name="com.heytap.mcssdk.PushService"
android:permission="com.coloros.mcs.permission.SEND_MCS_MESSAGE"
android:process=":push">
<intent-filter>
<action android:name="com.coloros.mcs.action.RECEIVE_MCS_MESSAGE"/>
</intent-filter>
</service>
<service
android:name="com.heytap.mcssdk.AppPushService"
android:permission="com.heytap.mcs.permission.SEND_MCS_MESSAGE"
android:process=":push">
<intent-filter>
<action android:name="com.heytap.mcs.action.RECEIVE_MCS_MESSAGE"/>
</intent-filter>
</service>
<!-- V2.0.2 Add Service END-->
<meta-data
android:name="com.oppo.push.app_key"
android:value="Obtain from OPPO Developer Platform"
/>
<meta-data
android:name="com.oppo.push.app_secret"
android:value="Obtain from OPPO Developer Platform"
/>
</application>
- For OPPO PUSH SDK V2.1.0 (mPaaS baseline is 10.1.68.29 or later version), the corresponding
service
classes arecom.heytap.msp.push.service.CompatibleDataMessageCallbackService
andcom.heytap.msp.push.service.DataMessageCallbackService
. The configuration is as follows:<uses-permission android:name="com.coloros.mcs.permission.RECIEVE_MCS_MESSAGE" />
<uses-permission android:name="com.heytap.mcs.permission.RECIEVE_MCS_MESSAGE"/>
<application>
<!-- V2.1.0 Add Service START-->
<service
android:name="com.heytap.msp.push.service.CompatibleDataMessageCallbackService"
android:permission="com.coloros.mcs.permission.SEND_MCS_MESSAGE"
android:process=":push">
<intent-filter>
<action android:name="com.coloros.mcs.action.RECEIVE_MCS_MESSAGE"/>
</intent-filter>
</service>
<service
android:name="com.heytap.msp.push.service.DataMessageCallbackService"
android:permission="com.heytap.mcs.permission.SEND_PUSH_MESSAGE"
android:process=":push">
<intent-filter>
<action android:name="com.heytap.mcs.action.RECEIVE_MCS_MESSAGE"/>
<action android:name="com.heytap.msp.push.RECEIVE_MCS_MESSAGE"/>
</intent-filter>
</service>
<!-- V2.1.0 Add Service END-->
<meta-data
android:name="com.oppo.push.app_key"
android:value=" Obtain from OPPO Developer Platform"
/>
<meta-data
android:name="com.oppo.push.app_secret"
android:value=" Obtain from OPPO Developer Platform "
/>
</application>
- For OPPO PUSH SDK V2.0.2 (mPaaS baseline earlier than 10.1.68.29), the corresponding