You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

22 lines
557B

  1. import 'package:flutter/material.dart';
  2. import 'app.dart';
  3. import 'data/repository/authentication_repository.dart';
  4. void main() {
  5. runApp(App(authenticationRepository: AuthenticationRepository()));
  6. }
  7. Future<dynamic> myBackgroundMessageHandler(Map<String, dynamic> message) {
  8. if (message.containsKey('data')) {
  9. // Handle data message
  10. final dynamic data = message['data'];
  11. }
  12. if (message.containsKey('notification')) {
  13. // Handle notification message
  14. final dynamic notification = message['notification'];
  15. }
  16. // Or do other work.
  17. }