I am not able to display notfication popup on screen when app is open and screen is lock any solution #8430
Unanswered
amelioratesolutions
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
FirebaseMessaging.onMessage.listen((RemoteMessage message) {
// viewShowRide == true;
if (message.data != null &&
message.data['title'] != null &&
message.data['body'] != null) {
var title = message.data['title'];
var body = message.data['body'];
print('Push Listen*');
print("SOCKET");
print(title.toString());
print(body.toString());
// Parse the message received
PushNotification _notificationInfo = PushNotification(
title: title,
body: body,
);
});
This is condition for displaying widget
viewShowRide ? bottomRiderView() : Container(),
I am new to flutter plz give me solution to show popup if screen is lock and app is open in flutter
Beta Was this translation helpful? Give feedback.
All reactions