Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ public class Headers {
public static final String CHANNEL_TYPE_VALUE = "mobile";
public static final String EVENT = "event";
public static final String ID = "id";
public static final String NOTIFICATION_LOG_ID = "notification_log_id";
public static final String USER_AGENT = "User-Agent";
public static final String USER_AGENT_MOBILE = "Android";
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,10 @@ public static void readNotification(String mensagem, DitoSDKCallback callback) t
json.addProperty(Constants.Headers.CHANNEL_TYPE, Constants.Headers.CHANNEL_TYPE_VALUE);
json.addProperty(Constants.Headers.TYPE, Constants.getParamNetworks());
json.addProperty(Constants.Headers.ID, Constants.getSocialId());
// Log.e("DITO_SDK_READ_NOTIFICATION" , json.toString());
if (jsonObject.has("notification") && !TextUtils.isEmpty(jsonObject.get("notification").getAsString())){
String notificationLogId = jsonObject.get("notification_log_id").getAsString();
json.addProperty(Constants.Headers.NOTIFICATION_LOG_ID, notificationLogId);
}
NetworkUtil.requestPostMethod(Constants.getUrlReadNotification(identifier), json.toString(), callback);
}else{
Log.e("DITO_SDK", Constants.Mensagens.JSON_FORA_FORMATO);
Expand Down