Skip to content

Commit

Permalink
chore: setForegroundServiceBehavior for persistent websocket service …
Browse files Browse the repository at this point in the history
…[WPB-11113] (#3593)
  • Loading branch information
ohassine authored Nov 11, 2024
1 parent afeb086 commit 5c64173
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,7 @@ class PersistentWebSocketService : Service() {
.setSmallIcon(R.drawable.websocket_notification_icon_small)
.setContentIntent(openAppPendingIntent(this))
.setCategory(NotificationCompat.CATEGORY_SERVICE)
.setForegroundServiceBehavior(NotificationCompat.FOREGROUND_SERVICE_IMMEDIATE)
.setAutoCancel(false)
.setOngoing(true)
.build()
Expand Down

0 comments on commit 5c64173

Please sign in to comment.