Skip to content

Commit 416beb5

Browse files
authored
upgrade oppo push (#242)
1 parent 5afc176 commit 416beb5

File tree

3 files changed

+9
-5
lines changed

3 files changed

+9
-5
lines changed
109 KB
Binary file not shown.
-94.8 KB
Binary file not shown.

android-sdk/mixpush-oppo/src/main/java/cn/leancloud/LCOPPOPushAdapter.java

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ public void done(LCException e) {
4242
}
4343
}
4444

45-
public void onRegister(int responseCode, String registerID) {
45+
public void onRegister(int responseCode, String registerID, String packageName, String miniProgramPkg) {
4646
if (responseCode != 0) {
4747
LOGGER.e("failed to register device. errorCode: " + responseCode);
4848
return;
@@ -54,7 +54,7 @@ public void onRegister(int responseCode, String registerID) {
5454
updateLCInstallation(registerID);
5555
}
5656

57-
public void onUnRegister(int responseCode) {
57+
public void onUnRegister(int responseCode, String packageName, String miniProgramPkg) {
5858
if (responseCode != 0) {
5959
LOGGER.e("failed to unregister device. errorCode: " + responseCode);
6060
} else {
@@ -86,8 +86,12 @@ public void onGetNotificationStatus(int responseCode, int status) {
8686
}
8787
}
8888

89-
@Override
90-
public void onError(int i, String s) {
91-
LOGGER.w("error occurred. code: " + i + ", cause: " + s);
89+
public void onError(int errorCode, String message, String packageName, String miniProgramPkg) {
90+
LOGGER.w("error occurred. code:" + errorCode + ", message:" + message
91+
+ ", package:" + packageName + ", miniPkg:" + miniProgramPkg);
9292
}
93+
94+
// public void onError(int i, String s) {
95+
// LOGGER.w("error occurred. code: " + i + ", cause: " + s);
96+
// }
9397
}

0 commit comments

Comments
 (0)