From 75d5bebd8aa72653e087dc60a7d3d45716ae45cd Mon Sep 17 00:00:00 2001 From: Aneel Singh Date: Sat, 1 May 2021 00:45:10 -0600 Subject: [PATCH] Final commit --- .../com/example/test2/MyFirebaseMessagingService.java | 8 ++++---- app/src/main/java/com/example/test2/MyWorker.java | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/app/src/main/java/com/example/test2/MyFirebaseMessagingService.java b/app/src/main/java/com/example/test2/MyFirebaseMessagingService.java index 3736695..883f514 100644 --- a/app/src/main/java/com/example/test2/MyFirebaseMessagingService.java +++ b/app/src/main/java/com/example/test2/MyFirebaseMessagingService.java @@ -60,11 +60,11 @@ public void onMessageReceived(RemoteMessage remoteMessage) { // TODO(developer): Handle FCM messages here. // Not getting messages here? See why this may be: https://goo.gl/39bRNJ - Log.d(TAG, "From: " + remoteMessage.getFrom()); + //Log.d(TAG, "From: " + remoteMessage.getFrom()); // Check if message contains a data payload. if (remoteMessage.getData().size() > 0) { - Log.d(TAG, "Message data payload: " + remoteMessage.getData()); + //Log.d(TAG, "Message data payload: " + remoteMessage.getData()); if (/* Check if data needs to be processed by long running job */ true) { // For long-running tasks (10 seconds or more) use WorkManager. @@ -78,7 +78,7 @@ public void onMessageReceived(RemoteMessage remoteMessage) { // Check if message contains a notification payload. if (remoteMessage.getNotification() != null) { - Log.d(TAG, "Message Notification Body: " + remoteMessage.getNotification().getBody()); + //Log.d(TAG, "Message Notification Body: " + remoteMessage.getNotification().getBody()); } // Also if you intend on generating your own notifications as a result of a received FCM @@ -99,7 +99,7 @@ public void onMessageReceived(RemoteMessage remoteMessage) { */ @Override public void onNewToken(String token) { - Log.d(TAG, "Refreshed token: " + token); + //Log.d(TAG, "Refreshed token: " + token); // If you want to send messages to this application instance or // manage this apps subscriptions on the server side, send the diff --git a/app/src/main/java/com/example/test2/MyWorker.java b/app/src/main/java/com/example/test2/MyWorker.java index 02c42b0..7646326 100644 --- a/app/src/main/java/com/example/test2/MyWorker.java +++ b/app/src/main/java/com/example/test2/MyWorker.java @@ -18,7 +18,7 @@ public MyWorker(@NonNull Context appContext, @NonNull WorkerParameters workerPar @NonNull @Override public Result doWork() { - Log.d(TAG, "Performing long running task in scheduled job"); + //Log.d(TAG, "Performing long running task in scheduled job"); // TODO(developer): add long running task here. return Result.success(); }