api_fcm 1.0.1 copy "api_fcm: ^1.0.1" to clipboard
api_fcm: ^1.0.1 copied to clipboard

discontinued
outdated

Simple api to send notifications using google FCM endpoint

Api Fcm Plugin for Dart #

A Dart plugin to use the Firebase Cloud Messaging API.

To learn more about Firebase Cloud Messaging, please visit the Firebase website

Getting Started #

To get started with Firebase Cloud Messaging for Dart, please see the documentation.

Usage #

Exemple

import 'package:api_fcm/api_fcm.dart';
import 'package:api_fcm/src/message_model.dart';

void main() {
  var api = ApiFcm(tokenServer: '<yourtoken>');

  api.postMessage(
    listtokens: ['<deviceToken>'],
    notification: MessageModel(body: 'Notification test tokens'),
  );

  api.postTopics(
    topics: 'test',
    notification: MessageModel(body: 'Notification test topics'),
  );
}


15
likes
0
points
25
downloads

Publisher

unverified uploader

Weekly Downloads

Simple api to send notifications using google FCM endpoint

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

http

More

Packages that depend on api_fcm