You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: packages/firebase_messaging/firebase_messaging/example/lib/main.dart
+3-2Lines changed: 3 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -28,8 +28,9 @@ import 'token_monitor.dart';
28
28
/// 2. Run `melos bootstrap` in FlutterFire project.
29
29
/// 3. In your terminal, root to ./packages/firebase_messaging/firebase_messaging/example directory.
30
30
/// 4. Run `flutterfire configure` in the example/ directory to setup your app with your Firebase project.
31
-
/// 5. Run the app on an actual device for iOS, android is fine to run on an emulator.
32
-
/// 6. Use the following script to send a message to your device: scripts/send-message.js. To run this script,
31
+
/// 5. Open `token_monitor.dart` and change `vapidKey` to yours.
32
+
/// 6. Run the app on an actual device for iOS, android is fine to run on an emulator.
33
+
/// 7. Use the following script to send a message to your device: scripts/send-message.js. To run this script,
33
34
/// you will need nodejs installed on your computer. Then the following:
34
35
/// a. Download a service account key (JSON file) from your Firebase console, rename it to "google-services.json" and add to the example/scripts directory.
35
36
/// b. Ensure your device/emulator is running, and run the FirebaseMessaging example app using `flutter run`.
0 commit comments