@@ -199,11 +199,11 @@ public void onSuccess(JSONObject response) {
199
199
params .put ("delegate_id" , new JSONObject ().put ("success" , delegateIdSuccess ).put ("failure" , delegateIdFailure ).toString ());
200
200
if (response == null ) {
201
201
params .put ("response" , "" );
202
- OneSignalUnityProxy .unitySafeInvoke ("onSendOutcomeSuccess " , params .toString ());
202
+ OneSignalUnityProxy .unitySafeInvoke ("onPostNotificationSuccess " , params .toString ());
203
203
return ;
204
204
}
205
205
params .put ("response" , response .toString ());
206
- OneSignalUnityProxy .unitySafeInvoke ("onSendOutcomeSuccess " , params .toString ());
206
+ OneSignalUnityProxy .unitySafeInvoke ("onPostNotificationSuccess " , params .toString ());
207
207
} catch (JSONException e ) {
208
208
e .printStackTrace ();
209
209
}
@@ -215,11 +215,11 @@ public void onFailure(JSONObject response) {
215
215
params .put ("delegate_id" , new JSONObject ().put ("success" , delegateIdSuccess ).put ("failure" , delegateIdFailure ));
216
216
if (response == null ) {
217
217
params .put ("response" , "" );
218
- OneSignalUnityProxy .unitySafeInvoke ("onSendOutcomeSuccess " , params .toString ());
218
+ OneSignalUnityProxy .unitySafeInvoke ("onPostNotificationFailed " , params .toString ());
219
219
return ;
220
220
}
221
221
params .put ("response" , response .toString ());
222
- OneSignalUnityProxy .unitySafeInvoke ("onSendOutcomeSuccess " , params .toString ());
222
+ OneSignalUnityProxy .unitySafeInvoke ("onPostNotificationFailed " , params .toString ());
223
223
} catch (JSONException e ) {
224
224
e .printStackTrace ();
225
225
}
0 commit comments