diff --git a/README.md b/README.md index 6a722b5..122bb92 100644 --- a/README.md +++ b/README.md @@ -107,10 +107,18 @@ flutter pub add pusher_beams In order to initialize Pusher Beams, you already have initialized Firebase ([FlutterFire](https://firebase.flutter.dev/)), now you can initialize Pusher Beams using the `start` method as soon as possible (Preferable inside the `main` function). ```dart +import 'package:pusher_beams/pusher_beams.dart'; + void main() async { // Some initial code - // Maybe the firebase initialization... + // Example Firebase initialization + WidgetsFlutterBinding.ensureInitialized(); + await Firebase.initializeApp( + options: DefaultFirebaseOptions.currentPlatform, + ); + + // PusherBeams initialization await PusherBeams.instance.start('YOUR INSTANCE ID'); } ```