@@ -225,7 +225,8 @@ void main() {
225
225
final expectedGroupKey = '${data .realmUrl }|${data .userId }' ;
226
226
final expectedId =
227
227
NotificationDisplayManager .notificationIdAsHashOf (expectedTag);
228
- const expectedIntentFlags = PendingIntentFlag .immutable;
228
+ const expectedPendingIntentFlags = PendingIntentFlag .immutable;
229
+ const expectedIntentFlags = IntentFlag .activityClearTop | IntentFlag .activityNewTask;
229
230
final expectedSelfUserKey = '${data .realmUrl }|${data .userId }' ;
230
231
final expectedIntentDataUrl = NotificationOpenPayload (
231
232
realmUrl: data.realmUrl,
@@ -281,11 +282,12 @@ void main() {
281
282
..autoCancel.equals (true )
282
283
..contentIntent.which ((it) => it.isNotNull ()
283
284
..requestCode.equals (0 )
284
- ..flags.equals (expectedIntentFlags )
285
+ ..flags.equals (expectedPendingIntentFlags )
285
286
..intent.which ((it) => it
286
287
..action.equals (IntentAction .view)
287
288
..dataUrl.equals (expectedIntentDataUrl.toString ())
288
- ..extras.deepEquals ({}))),
289
+ ..extras.deepEquals ({})
290
+ ..flags.equals (expectedIntentFlags))),
289
291
(it) => it.isA <AndroidNotificationHostApiNotifyCall >()
290
292
..id.equals (NotificationDisplayManager .notificationIdAsHashOf (expectedGroupKey))
291
293
..tag.equals (expectedGroupKey)
@@ -1218,6 +1220,7 @@ extension on Subject<AndroidIntent> {
1218
1220
Subject <String > get action => has ((x) => x.action, 'action' );
1219
1221
Subject <String > get dataUrl => has ((x) => x.dataUrl, 'dataUrl' );
1220
1222
Subject <Map <String ?, String ?>> get extras => has ((x) => x.extras, 'extras' );
1223
+ Subject <int > get flags => has ((x) => x.flags, 'flags' );
1221
1224
}
1222
1225
1223
1226
extension on Subject <InboxStyle > {
0 commit comments