Description
Using third-party push providers may cause incompatibility between the IM SDK dependencies and the vivo/OPPO Push SDK versions.
Starting with version 5.6.8, the Android IM SDK has upgraded its dependencies on third-party clients for push notification features:
- vivo Push SDK upgraded from 3.0.0.4 to 3.0.0.7
- OPPO Push SDK upgraded from 3.1.0 to 3.4.0
Incompatible changes occurred between these versions for both vivo and OPPO Push SDKs.
Recommendations
- Upgrade to IM SDK 5.6.8 if you need to use vivo Push SDK 3.0.0.7 and OPPO Push SDK 3.4.0
- Use an IM SDK version prior to 5.6.8 if you cannot upgrade the OPPO and vivo Push SDKs
Links
OPPO Push SDK changes
OPPO Push documentation: OPPO Developer
OPPO 3.1.0 legacy interface
// ICallBackResultService.java
public void onRegister(int responseCode, String registerID)
public void onUnRegister(int responseCode)
public void onError(int i, String s)
OPPO 3.4.0 new interface
The above interfaces have been updated.
// ICallBackResultService.java
public void onRegister(int responseCode,String registerID,String packageName,String miniPackageName)
public void onUnRegister(int responseCode, String packageName, String miniPackageName)
public void onError(int errorCode,String message,String packageName,String miniPackageName)
vivo Push SDK changes
vivo 3.0.0.4 legacy interface
// PushClient.java
PushClient.getInstance(context.getApplicationContext()).initialize()
vivo 3.0.0.7 new interface
The above interface has been updated.
// PushClient.java
com.vivo.push.PushConfig config =
new com.vivo.push.PushConfig.Builder().agreePrivacyStatement(true).build();
PushClient.getInstance(context.getApplicationContext()).initialize(config);
More support
For further assistance or if you encounter any issues, feel free to submit a ticket.