Skip to content

Commit e8fc559

Browse files
committed
Add more log for push
1 parent c08310b commit e8fc559

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

Parse/src/main/java/com/parse/GcmRegistrar.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -182,6 +182,8 @@ public Task<Void> handleRegistrationIntentAsync(Intent intent) {
182182
String registrationId = intent.getStringExtra(REGISTRATION_ID_EXTRA);
183183

184184
if (registrationId != null && registrationId.length() > 0) {
185+
PLog.v(TAG, "Received deviceToken <" + registrationId + "> from GCM.");
186+
185187
ParseInstallation installation = ParseInstallation.getCurrentInstallation();
186188
// Compare the new deviceToken with the old deviceToken, we only update the
187189
// deviceToken if the new one is different from the old one. This does not follow google

Parse/src/main/java/com/parse/ParsePushBroadcastReceiver.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -141,6 +141,7 @@ protected void onPushReceive(Context context, Intent intent) {
141141
PLog.e(TAG, "Can not get push data from intent.");
142142
return;
143143
}
144+
PLog.v(TAG, "Received push data: " + pushDataStr);
144145

145146
JSONObject pushData = null;
146147
try {

0 commit comments

Comments
 (0)