If OPPO push notifications fail, follow these steps to troubleshoot the issue:
Ensure that you have successfully integrated OPPO Push by following the instructions in Integrate OPPO Push. The integration involves these steps:
Download and import the OPPO Push SDK library.
Add the Push - OPPO component.
Configure the
AndroidManifest.xmlfile.Integrate
MpaaSNcActivity.NoteFor more information, see the OPPO Push Platform User Guide. Create an account on the OPPO Open Platform and request access to the push service.
mPaaS does not provide the OPPO Push SDK library (mcssdk-2.xx.jar). You can download the SDK from the OPPO SDK documentation and integrate it into your main project.
Verify that the SDK version for the imported mcssdk-2.xx.jar file is correct.
If the mPaaS baseline is 10.1.68.29 or later, OPPO Push SDK V2.1.0 (mcssdk-2.1.0.jar) is supported.
If the mPaaS baseline is earlier than 10.1.68.29, only OPPO Push SDK V2.0.2 (mcssdk-2.0.2.jar) is supported.
Verify that the
serviceis configured correctly in theAndroidManifest.xmlconfiguration file. Different SDK versions require differentserviceclasses.For OPPO Push SDK V2.0.2 (mPaaS baseline earlier than 10.1.68.29), the required
serviceclasses arecom.heytap.mcssdk.PushServiceandcom.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> <!-- Add Service for V2.0.2 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> <!-- Add Service for V2.0.2 END--> <meta-data android:name="com.oppo.push.app_key" android:value="Get from OPPO Open Platform" /> <meta-data android:name="com.oppo.push.app_secret" android:value="Get from OPPO Open Platform" /> </application>For OPPO Push SDK V2.1.0 (mPaaS baseline 10.1.68.29 or later), the required
serviceclasses arecom.heytap.msp.push.service.CompatibleDataMessageCallbackServiceandcom.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> <!-- Add Service for V2.1.0 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> <!-- Add Service for V2.1.0 END--> <meta-data android:name="com.oppo.push.app_key" android:value="Get from OPPO Open Platform" /> <meta-data android:name="com.oppo.push.app_secret" android:value="Get from OPPO Open Platform" /> </application>