From bea8416b078ebc75a2a54357f10aec5647b0a449 Mon Sep 17 00:00:00 2001 From: Aneel Singh Date: Sat, 1 May 2021 00:41:29 -0600 Subject: [PATCH] Final commit --- .../test2/MyFirebaseMessagingService.java | 6 +- .../res/drawable/ic_stat_ic_notification.xml | 173 +----------------- app/src/main/res/drawable/ldyaaqpx.bmp | Bin 5238 -> 0 bytes app/src/main/res/values/strings.xml | 2 + 4 files changed, 9 insertions(+), 172 deletions(-) delete mode 100644 app/src/main/res/drawable/ldyaaqpx.bmp diff --git a/app/src/main/java/com/example/test2/MyFirebaseMessagingService.java b/app/src/main/java/com/example/test2/MyFirebaseMessagingService.java index 47e2784..3736695 100644 --- a/app/src/main/java/com/example/test2/MyFirebaseMessagingService.java +++ b/app/src/main/java/com/example/test2/MyFirebaseMessagingService.java @@ -148,12 +148,12 @@ private void sendNotification(String messageBody) { PendingIntent pendingIntent = PendingIntent.getActivity(this, 0 /* Request code */, intent, PendingIntent.FLAG_ONE_SHOT); - String channelId = "abc";//getString(R.string.default_notification_channel_id); + String channelId = getString(R.string.default_notification_channel_id); Uri defaultSoundUri = RingtoneManager.getDefaultUri(RingtoneManager.TYPE_NOTIFICATION); NotificationCompat.Builder notificationBuilder = new NotificationCompat.Builder(this, channelId) - //.setSmallIcon(R.drawable.ic_stat_ic_notification) - //.setContentTitle(getString(R.string.fcm_message)) + .setSmallIcon(R.drawable.ic_stat_ic_notification) + .setContentTitle(getString(R.string.fcm_message)) .setContentText(messageBody) .setAutoCancel(true) .setSound(defaultSoundUri) diff --git a/app/src/main/res/drawable/ic_stat_ic_notification.xml b/app/src/main/res/drawable/ic_stat_ic_notification.xml index 07d5da9..3e730ff 100644 --- a/app/src/main/res/drawable/ic_stat_ic_notification.xml +++ b/app/src/main/res/drawable/ic_stat_ic_notification.xml @@ -1,170 +1,5 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + diff --git a/app/src/main/res/drawable/ldyaaqpx.bmp b/app/src/main/res/drawable/ldyaaqpx.bmp deleted file mode 100644 index eefd9971dae6cb16c640ec0919a24bfd1e54f3a5..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 5238 zcmeI#&r1|x9LMnu5dwcjcn~_MC=%V2(1VB~;t$A6M{gd2hz^|;sZ;(1Du@>m?bgAo z5`h;XioipN7eP8mWCcnghSd80m=8P*`!Mr-bqvH8?9S{n&-cg9?(DPEJ3LlfIMvSc zT^`M6j~j&s_6mibv*V{PuIN)c=J5$jXvP0{t5tY~pZJR+v^{|OtHx#Ybqg=B3-u84 z1>>kh9(|SL0dzh>J(L>X$3rOoqWT)ZTO6ZQ&9t%KSi=ykJ(Zye`i`d6i#h%pEl~cL z-e$0em|9uqeuMJI_LDWgWnOGQeX!KY8l(I%=cf)?b6e)=cO#}B&DC$NrB+(Zd&Ksl z`3p$PZ8^ROOFvIxsh1Y>1eSj8AuYG%cn2)~+`%tcYKCI8el)|<&uwfYl-n}C16{k8 zek$+*mb#&s4OrKFtudYOO z*mvl6%jI|p{eRY+Nx1RzY#+g|>Gn4pb^s v;NKswAkTVPa=*jBvr{bU`;;Xn&pB>gT}PgEvgYoD?!jx3HRgKW#h-x_W=7%e diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml index cfc5084..da197d6 100644 --- a/app/src/main/res/values/strings.xml +++ b/app/src/main/res/values/strings.xml @@ -1,4 +1,6 @@ Useless Button Click Me! + New Message! + fcm_default_channel \ No newline at end of file