fcm

Version, currently master branch1 version
  • master branchlatestAug 13, 2018

github.com/9to6/fcm

Fcm client for Crystal-lang

2 stars
0 dependents
License: MIT

Installation

# Add this to your shard.yml
dependencies:
  fcm:
    github: 9to6/fcm
    branch: master

master is a branch, not a release, so this tracks it rather than pinning a version.

Then run:

shards install

shard.yml

Crystal
0.25.1
License
MIT
Author
9to6 <ktk0011@gmail.com>

Dependencies

Development Dependencies

  • webmock*github: manastech/webmock.cr, branch: masterdev

README

# fcm

Firebase notification client for Crystal language

## Installation

Add this to your application's `shard.yml`:

```yaml
dependencies:
  fcm:
    github: 9to6/fcm
```

## Usage

```crystal
require "fcm"

fcm = Fcm::Fcm.new("api-token")
# fcm.send(registration_ids: ["4sdsx", "8sdsd"], {data: {score: "5x1"}})
fcm.send(["4sdsx", "8sdsd"], {data: {score: "5x1"}}.to_h)

fcm.send_to_topic("news")
```