notifications update

pull/3/head
haroon amjad 3 years ago
parent 9030b9bc81
commit ab1aa33ff3

@ -131,6 +131,7 @@ class AppNotifications {
notification.videoURL = message.data["VideoUrl"]; notification.videoURL = message.data["VideoUrl"];
} }
Future.delayed(Duration(seconds: 5), () {
Navigator.of(context).push( Navigator.of(context).push(
MaterialPageRoute( MaterialPageRoute(
builder: (BuildContext context) => NotificationsDetailsPage( builder: (BuildContext context) => NotificationsDetailsPage(
@ -138,6 +139,7 @@ class AppNotifications {
), ),
), ),
); );
});
} }
void _handleOpenApp(RemoteMessage message) { void _handleOpenApp(RemoteMessage message) {
@ -155,6 +157,7 @@ class AppNotifications {
notification.videoURL = message.data["VideoUrl"]; notification.videoURL = message.data["VideoUrl"];
} }
Future.delayed(Duration(seconds: 5), () {
Navigator.of(context).push( Navigator.of(context).push(
MaterialPageRoute( MaterialPageRoute(
builder: (BuildContext context) => NotificationsDetailsPage( builder: (BuildContext context) => NotificationsDetailsPage(
@ -162,6 +165,7 @@ class AppNotifications {
), ),
), ),
); );
});
} }
} }
} }

Loading…
Cancel
Save