File tree Expand file tree Collapse file tree
ORLib/src/main/java/io/openremote/orlib/service Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -211,7 +211,14 @@ class ORFirebaseMessagingService : com.google.firebase.messaging.FirebaseMessagi
211211 orAlertAction : ORAlertAction ?
212212 ): PendingIntent {
213213 val actionIntent = when {
214- Build .VERSION .SDK_INT >= Build .VERSION_CODES .S -> Intent (this , NotificationActivity ::class .java)
214+ Build .VERSION .SDK_INT >= Build .VERSION_CODES .S -> {
215+ Intent (this , NotificationActivity ::class .java).apply {
216+ flags = Intent .FLAG_ACTIVITY_NEW_TASK or
217+ Intent .FLAG_ACTIVITY_CLEAR_TASK or
218+ Intent .FLAG_ACTIVITY_NO_HISTORY or
219+ Intent .FLAG_ACTIVITY_EXCLUDE_FROM_RECENTS
220+ }
221+ }
215222 else -> Intent (this , ORMessagingActionService ::class .java)
216223 }
217224 actionIntent.putExtra(" notificationId" , notificationId)
You can’t perform that action at this time.
0 commit comments