Skip to content

Commit

Permalink
add unregister method to PushNotification. #5
Browse files Browse the repository at this point in the history
  • Loading branch information
endel committed May 21, 2014
1 parent ee3b22b commit 4621cab
Showing 1 changed file with 8 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,14 @@ public void register(String senderID, String regId, Responder responder)
data.putOpt("app_version", packageVersion);
data.putOpt("device_id", regId);

this.client.post("push/register", data, responder);
this.client.post("push/registration", data, responder);
}

public void unregister(String regId)
{
JSONObject data = new JSONObject();
data.putOpt("device_id", regId);
this.client.delete("push/registration", data, responder);
}

}
Expand Down

0 comments on commit 4621cab

Please sign in to comment.