From e8fc559dc79aec5e803f73a280a987b209cc65dd Mon Sep 17 00:00:00 2001 From: wangmengyan95 Date: Fri, 20 Nov 2015 14:23:27 -0800 Subject: [PATCH] Add more log for push --- Parse/src/main/java/com/parse/GcmRegistrar.java | 2 ++ Parse/src/main/java/com/parse/ParsePushBroadcastReceiver.java | 1 + 2 files changed, 3 insertions(+) diff --git a/Parse/src/main/java/com/parse/GcmRegistrar.java b/Parse/src/main/java/com/parse/GcmRegistrar.java index 8b2f04f88..f2a7fb831 100644 --- a/Parse/src/main/java/com/parse/GcmRegistrar.java +++ b/Parse/src/main/java/com/parse/GcmRegistrar.java @@ -182,6 +182,8 @@ public Task handleRegistrationIntentAsync(Intent intent) { String registrationId = intent.getStringExtra(REGISTRATION_ID_EXTRA); if (registrationId != null && registrationId.length() > 0) { + PLog.v(TAG, "Received deviceToken <" + registrationId + "> from GCM."); + ParseInstallation installation = ParseInstallation.getCurrentInstallation(); // Compare the new deviceToken with the old deviceToken, we only update the // deviceToken if the new one is different from the old one. This does not follow google diff --git a/Parse/src/main/java/com/parse/ParsePushBroadcastReceiver.java b/Parse/src/main/java/com/parse/ParsePushBroadcastReceiver.java index 23a38781e..5214e0330 100644 --- a/Parse/src/main/java/com/parse/ParsePushBroadcastReceiver.java +++ b/Parse/src/main/java/com/parse/ParsePushBroadcastReceiver.java @@ -141,6 +141,7 @@ protected void onPushReceive(Context context, Intent intent) { PLog.e(TAG, "Can not get push data from intent."); return; } + PLog.v(TAG, "Received push data: " + pushDataStr); JSONObject pushData = null; try {