@@ -58,13 +58,15 @@ private void setLanguage(MethodCall call, Result result) {
58
58
language = null ;
59
59
}
60
60
OneSignal .getUser ().setLanguage (language );
61
+ replySuccess (result , null );
61
62
}
62
63
63
64
private void addAliases (MethodCall call , Result result ) {
64
65
// call.arguments is being casted to a Map<String, Object> so a try-catch with
65
66
// a ClassCastException will be thrown
66
67
try {
67
68
OneSignal .getUser ().addAliases ((Map <String , String >) call .arguments );
69
+ replySuccess (result , null );
68
70
} catch (ClassCastException e ) {
69
71
replyError (result , "OneSignal" , "addAliases failed with error: " + e .getMessage () + "\n " + e .getStackTrace (), null );
70
72
}
@@ -75,6 +77,7 @@ private void removeAliases(MethodCall call, Result result) {
75
77
// a ClassCastException will be thrown
76
78
try {
77
79
OneSignal .getUser ().removeAliases ((List <String >) call .arguments );
80
+ replySuccess (result , null );
78
81
} catch (ClassCastException e ) {
79
82
replyError (result , "OneSignal" , "removeAliases failed with error: " + e .getMessage () + "\n " + e .getStackTrace (), null );
80
83
}
@@ -105,6 +108,7 @@ private void addTags(MethodCall call, Result result) {
105
108
// a ClassCastException will be thrown
106
109
try {
107
110
OneSignal .getUser ().addTags ((Map <String , String >) call .arguments );
111
+ replySuccess (result , null );
108
112
} catch (ClassCastException e ) {
109
113
replyError (result , "OneSignal" , "addTags failed with error: " + e .getMessage () + "\n " + e .getStackTrace (), null );
110
114
}
@@ -115,6 +119,7 @@ private void removeTags(MethodCall call, Result result) {
115
119
// a ClassCastException will be thrown
116
120
try {
117
121
OneSignal .getUser ().removeTags ((List <String >) call .arguments );
122
+ replySuccess (result , null );
118
123
} catch (ClassCastException e ) {
119
124
replyError (result , "OneSignal" , "deleteTags failed with error: " + e .getMessage () + "\n " + e .getStackTrace (), null );
120
125
}
0 commit comments