All Projects → appleboy → Go Fcm

appleboy / Go Fcm

Licence: mit
Firebase Cloud Messaging Library for Golang

Programming Languages

go
31211 projects - #10 most used programming language

Projects that are alternatives of or similar to Go Fcm

Pushraven
A simple Java library to interface with Firebase Cloud Messaging (FCM) API. Pushraven allows you to push notifications to clients in very few lines of code.
Stars: ✭ 67 (-51.45%)
Mutual labels:  firebase, notification
Pushnotifications
🐉 A macOS, Linux, Windows app to test push notifications on iOS and Android
Stars: ✭ 1,813 (+1213.77%)
Mutual labels:  firebase, notification
Laravel Fcm
Firebase Cloud Messaging (FCM) sender for Laravel
Stars: ✭ 129 (-6.52%)
Mutual labels:  firebase
React Firebase Hooks
React Hooks for Firebase.
Stars: ✭ 2,227 (+1513.77%)
Mutual labels:  firebase
Restaurantapp
Android Restaurant Application with QR Code Reader
Stars: ✭ 133 (-3.62%)
Mutual labels:  firebase
Timy Messenger
Timy - open source mobile app for groups to communicate and organize themselves. Built with flutter.
Stars: ✭ 1,745 (+1164.49%)
Mutual labels:  firebase
Justtweak
JustTweak is a framework for feature flagging and A/B testing for iOS apps.
Stars: ✭ 136 (-1.45%)
Mutual labels:  firebase
Combinefirebase
Combine wrapper on Google's iOS Firebase library.
Stars: ✭ 126 (-8.7%)
Mutual labels:  firebase
Next Firebase Auth
Simple Firebase authentication for all Next.js rendering strategies
Stars: ✭ 135 (-2.17%)
Mutual labels:  firebase
Howlstagram
Stars: ✭ 132 (-4.35%)
Mutual labels:  firebase
Tallyassist
Open source Flutter-based template for a business assistant application
Stars: ✭ 137 (-0.72%)
Mutual labels:  firebase
Nextjs Vercel Firebase
Next.js app using API routes to connect with Firestore.
Stars: ✭ 133 (-3.62%)
Mutual labels:  firebase
Chatair Android
🔥 A highly advance featured chat app in android using Firestore
Stars: ✭ 132 (-4.35%)
Mutual labels:  firebase
Noty
A simple library for creating animated warnings/dialogs/alerts for Android.
Stars: ✭ 136 (-1.45%)
Mutual labels:  notification
Smart Industry
🏭 Open Source Manufacturing Execution System for JobShop type manufacturer.
Stars: ✭ 138 (+0%)
Mutual labels:  firebase
Nativescript Feedback
📢 Non-blocking textual feedback for your NativeScript app
Stars: ✭ 127 (-7.97%)
Mutual labels:  notification
Stripe Firebase Extensions
Repository of Firebase Extensions built by Stripe.
Stars: ✭ 133 (-3.62%)
Mutual labels:  firebase
Fluttergram
A fully functional Instagram clone written in Flutter using Firebase / Firestore
Stars: ✭ 1,944 (+1308.7%)
Mutual labels:  firebase
React Native Firebase Chat
This repository contains the source code for a simple chat application built with React Native (frontend) and Firebase (backend).
Stars: ✭ 140 (+1.45%)
Mutual labels:  firebase
Generator Jekyll Starter Kit
🚀 Jekyll Progressive Web App Generator.
Stars: ✭ 139 (+0.72%)
Mutual labels:  firebase

go-fcm

GoDoc Build Status Go Report Card

This project was forked from github.com/edganiukov/fcm.

Golang client library for Firebase Cloud Messaging. Implemented only HTTP client.

More information on Firebase Cloud Messaging

Feature

  • [x] Send messages to a topic
  • [x] Send messages to a device list
  • [x] Supports condition attribute (fcm only)

Getting Started

To install fcm, use go get:

go get github.com/appleboy/go-fcm

or govendor:

govendor fetch github.com/appleboy/go-fcm

or other tool for vendoring.

Sample Usage

Here is a simple example illustrating how to use FCM library:

package main

import (
	"log"

	"github.com/appleboy/go-fcm"
)

func main() {
	// Create the message to be sent.
	msg := &fcm.Message{
		To: "sample_device_token",
		Data: map[string]interface{}{
			"foo": "bar",
		},
	}

	// Create a FCM client to send the message.
	client, err := fcm.NewClient("sample_api_key")
	if err != nil {
		log.Fatalln(err)
	}

	// Send the message and receive the response without retries.
	response, err := client.Send(msg)
	if err != nil {
		log.Fatalln(err)
	}

	log.Printf("%#v\n", response)
}
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].