backgroundMessageHandler function

Future backgroundMessageHandler(
  1. Map<String, dynamic> message
)

Implementation

Future<dynamic> backgroundMessageHandler(Map<String, dynamic> message) async {
  final themes = AppBootstrap.current().themesBuilder(Brightness.dark);
  print("Got background notification: $message");
  return CupertinoTheme(
    data: themes.cupertinoTheme,
    child: Theme(
      data: themes.darkTheme,
      child: PlatformListTile(
        title: Text("Push Notification!"),
        subtitle: Text("Another thing"),
      ),
    ),
  );
}