Add push notification icon
Этот коммит содержится в:
@@ -16,6 +16,10 @@
|
||||
android:name="com.google.firebase.messaging.default_notification_channel_id"
|
||||
android:value="@string/notification_channel_id" />
|
||||
|
||||
<meta-data
|
||||
android:name="com.google.firebase.messaging.default_notification_icon"
|
||||
android:resource="@drawable/ic_stat_notify" />
|
||||
|
||||
<service android:name=".ManagerMessagingService">
|
||||
<intent-filter>
|
||||
<action android:name="com.google.firebase.MESSAGING_EVENT" />
|
||||
|
||||
@@ -32,7 +32,7 @@ public class ManagerMessagingService extends FirebaseMessagingService {
|
||||
PendingIntent pendingIntent = PendingIntent.getActivity(
|
||||
this, 0, new Intent(this, MainActivity.class), PendingIntent.FLAG_ONE_SHOT);
|
||||
NotificationCompat.Builder builder = new NotificationCompat.Builder(this, getString(R.string.notification_channel_id))
|
||||
.setSmallIcon(R.mipmap.ic_launcher)
|
||||
.setSmallIcon(R.drawable.ic_stat_notify)
|
||||
.setContentTitle(getString(R.string.app_name))
|
||||
.setContentText(remoteMessage.getNotification().getBody())
|
||||
.setAutoCancel(true)
|
||||
|
||||
Ссылка в новой задаче
Block a user