LTV

Prerequisites

  • Installing SDK
  • Setup Parse Serve

Steps to Follow:

  • you can update your LTV value in user object by using the following snippet : java ParseQuery.getQuery("_User").getInBackground(ParseUser.getCurrentUser().getObjectId(), new GetCallback<ParseObject>() { @Override public void done(ParseObject object, ParseException e) { if (e != null) { e.printStackTrace(); }else { ParseUser parseUser = ParseUser.getCurrentUser(); Integer ltv = 0; if (object != null && object.get("ltv") != null) { ltv = Integer.valueOf(String.valueOf(object.get("ltv"))); } ltv++; if (parseUser != null){ parseUser.put("ltv", ltv); parseUser.saveInBackground(); } } } });