Skip to content

Commit

Permalink
fix: Messaging to create the necessary files on the Web.
Browse files Browse the repository at this point in the history
  • Loading branch information
mathrunet committed Feb 28, 2023
1 parent c1ab4d8 commit f25b677
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions packages/katana_cli/lib/action/firebase/messaging.dart
Original file line number Diff line number Diff line change
Expand Up @@ -203,6 +203,11 @@ class FirebaseMessagingCliAction extends CliCommand with CliActionMixin {
"masamune_notification_firebase",
],
);
label("Add firebase-messaging-sw.js");
final swFile = File("web/firebase-messaging-sw.js");
if (!swFile.existsSync()) {
await swFile.writeAsString("console.log('Empty');");
}
label("Add firebase functions");
final functions = Fuctions();
await functions.load();
Expand Down

0 comments on commit f25b677

Please sign in to comment.