This document tracks changes to the API between versions.
| Old Method Signature | New Method Signature |
|---|---|
public static void showRatingFlowIfConditionsAreMet(Activity activity) |
public static boolean showRatingFlowIfConditionsAreMet(Activity activity) |
| New Methods |
|---|
public static void showMessageCenter(Activity activity, Map<String, String> customData) |
To improve the quality of the Apptentive SDK, and to make it easier to integrate, the following API method signatures of Apptentive.java have been changed or added.
| Old Method Signature | New Method Signature |
|---|---|
public static void setUserEmail(String email) |
public static void setInitialUserEmail(Context context, String email) |
public static void setCustomData(Map<String, String> customData) |
public static void setCustomDeviceData(Context context, Map<String, String> customDeviceData) |
| New Methods |
|---|
public static void addCustomDeviceData(Context context, String key, String value) |
public static void removeCustomDeviceData(Context context, String key) |
public static void setCustomPersonData(Context context, Map<String, String> customPersonData) |
public static void addCustomPersonData(Context context, String key, String value) |
public static void removeCustomPersonData(Context context, String key) |
public static int getUnreadMessageCount(Context context) |
The following changes from the 0.6.x series were made.
We are moving over to a unified message center, which is an expansion of the feedback API. We have decided to take the opportunity to clean up the ratings flow API, and simplify how you interact with the SDK in general. Below are detailed changes that have been made to the API, but from a simple perspective, you'll want to:
General setup:
- Replace
Apptentive.getFeedbackModule().addDataField("username", "Sky Kelsey");
with
Map customData = new HashMap();
customData.put("username", "Sky Kelsey");
Apptentive.setCustomData(customData);
- Replace
Apptentive.getRatingModule().setRatingProvider(new AmazonAppstoreRatingProvider());withApptentive.setRatingProvider(new AmazonAppstoreRatingProvider());
To launch feedback:
- Replace
Apptentive.getFeedbackModule().forceShowFeedbackDialog(YourActivity.this);withApptentive.showMessageCenter(YourActivity.this);.
In ratings:
- Replace
Apptentive.getRatingModule().run(YourActivity.this);withApptentive.showRatingFlowIfConditionsAreMet(YourActivity.this); - Replace
Apptentive.getRatingModule().logEvent();withApptentive.logSignificantEvent();.