diff --git a/lib/src/screens/service.dart b/lib/src/screens/service.dart index 8b448ad..404aeb2 100644 --- a/lib/src/screens/service.dart +++ b/lib/src/screens/service.dart @@ -49,25 +49,6 @@ class _ServiceScreenState extends State { } } - void _handleBackgroundMessage(RemoteMessage message) async { - final Map data = message.data; - - if (data['click_action'] == 'FLUTTER_NOTIFICATION_CLICK') { - final String screen = data['screen']; - - if (screen == 'solicitud') { - Navigator.push( - context, - MaterialPageRoute(builder: (context) => SolicitudScreen()), - ); - } else if (screen == 'misservicios') { - Navigator.push( - context, - MaterialPageRoute(builder: (context) => MyServicesScreen()), - ); - } - } - } Future sendPushNotification(String pro) async { try { @@ -88,7 +69,8 @@ class _ServiceScreenState extends State { 'data': { 'click_action': 'FLUTTER_NOTIFICATION_CLICK', 'id': '1', - 'status': 'done' + 'status': 'done', + 'screen':'solicitud' }, 'to': pro },