@@ -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