firebase_cloud_messaging_interop 3.0.0 copy "firebase_cloud_messaging_interop: ^3.0.0" to clipboard
firebase_cloud_messaging_interop: ^3.0.0 copied to clipboard

Platformweb

A dart plugin to use the Firebase Cloud Messaging Api (JS). You can retrieve the user's FCM token, delete it, access the notification data, ...

example/lib/main.dart

import 'package:example/firebase_cloud_messaging_interop_example.dart';
import 'package:flutter/material.dart';

final NotificationService notificationService = NotificationService();

void main() {
  runApp(MyApp());
}

class MyApp extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'Flutter Demo',
      theme: ThemeData(
        primarySwatch: Colors.blue,
      ),
      home: Scaffold(
        body: TextButton(
            onPressed: notificationService.getPermission,
            child: const Text('Request perm')),
      ),
    );
  }
}
16
likes
120
pub points
58%
popularity

Publisher

verified publishergaspardmerten.dev

A dart plugin to use the Firebase Cloud Messaging Api (JS). You can retrieve the user's FCM token, delete it, access the notification data, ...

Repository (GitHub)
View/report issues

Documentation

API reference

License

unknown (LICENSE)

Dependencies

js

More

Packages that depend on firebase_cloud_messaging_interop