diff options
Diffstat (limited to 'app/src/google')
-rw-r--r-- | app/src/google/AndroidManifest.xml | 4 | ||||
-rw-r--r-- | app/src/google/java/org/traccar/manager/ManagerMessagingService.java | 2 |
2 files changed, 5 insertions, 1 deletions
diff --git a/app/src/google/AndroidManifest.xml b/app/src/google/AndroidManifest.xml index cd5ddd8..c0215a1 100644 --- a/app/src/google/AndroidManifest.xml +++ b/app/src/google/AndroidManifest.xml @@ -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" /> diff --git a/app/src/google/java/org/traccar/manager/ManagerMessagingService.java b/app/src/google/java/org/traccar/manager/ManagerMessagingService.java index 55e664b..55a3b06 100644 --- a/app/src/google/java/org/traccar/manager/ManagerMessagingService.java +++ b/app/src/google/java/org/traccar/manager/ManagerMessagingService.java @@ -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) |