fcm-d ~master

Firebase Cloud Messaging library written on D language


To use this package, run the following command in your project's root directory:

Manual usage
Put the following dependency into your project's dependences section:

FCM Service

Firebase Cloud Messaging library written on D language

How to use

import std.json;
import std.stdio;

import fcm;

void main {
	FCMService fcm = FCMService.newInstance("api key");

	auto request = FCMRequest();
	request.registrationIds ~= "device token";

	JSONValue json;
	json["field1"] = "foo";
	json["field2"] = 42.0;
	json["field3"] = true;

	request.data = json;

	FCMResponse response = fcm.request(request);

	writeln("response: ", response);
}

TODO

[0.2.0]

  • Changed API, now use FCMService.newInstance("api key") to get FCM instance

[0.1.0]

[Backlog]

  • add unit tests
  • add screens
  • add documentation
  • add RxD sample
  • XMPP protocol
Authors:
  • Eugene Sakara
Dependencies:
requests, asdf
Versions:
0.2.0 2019-May-24
0.1.0 2019-May-18
~master 2019-May-24
Show all 3 versions
Download Stats:
  • 0 downloads today

  • 0 downloads this week

  • 0 downloads this month

  • 7 downloads total

Score:
0.6
Short URL:
fcm-d.dub.pm