Skip to content

9to6/fcm

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

fcm

Firebase notification client for Crystal language

Installation

Add this to your application's shard.yml:

dependencies:
  fcm:
    github: 9to6/fcm

Usage

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")

About

Fcm client for Crystal-lang

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published