All Projects → edganiukov → fcm

edganiukov / fcm

Licence: MIT license
Golang client library for Firebase Cloud Messaging.

Programming Languages

go
31211 projects - #10 most used programming language

Projects that are alternatives of or similar to fcm

fcmpush
Firebase Cloud Messaging API wrapper for Ruby, suppot HTTP v1 API including access_token auto refresh feature.
Stars: ✭ 44 (+100%)
Mutual labels:  push-notifications, fcm, firebase-cloud-messaging
Fcm Django
FCM Django: Send push notifications via django to websites, iOS & android mobile devices through FCM (Firebase Cloud Messaging)
Stars: ✭ 495 (+2150%)
Mutual labels:  push-notifications, fcm, firebase-cloud-messaging
Push Receiver
A library to subscribe to GCM/FCM and receive notifications within a node process.
Stars: ✭ 125 (+468.18%)
Mutual labels:  push-notifications, fcm, firebase-cloud-messaging
Electron Push Receiver
A module to bring Web Push support to Electron allowing it to receive notifications from Firebase Cloud Messaging (FCM).
Stars: ✭ 158 (+618.18%)
Mutual labels:  push-notifications, fcm, firebase-cloud-messaging
andpush
Android Push Notification in Ruby: The fastest client for FCM (Firebase Cloud Messaging)
Stars: ✭ 83 (+277.27%)
Mutual labels:  push-notifications, fcm, firebase-cloud-messaging
Onesignal Android Sdk
OneSignal is a free push notification service for mobile apps. This plugin makes it easy to integrate your native Android or Amazon app with OneSignal. https://onesignal.com
Stars: ✭ 503 (+2186.36%)
Mutual labels:  push-notifications, fcm
Thenetwork Open
TheNetwork is a blog cum chat app. It's completely built using firebase. Users can post, comment, like and bookmark the blogs, also users can send follow requests to connect with people. Users can create events and also prepare an event roadmap. Pagination for realtime data is also included in chats, blogs and events.
Stars: ✭ 17 (-22.73%)
Mutual labels:  push-notifications, firebase-cloud-messaging
Easynotifylibproject
Send firebase notifications to your users very easily: A new Android Lib
Stars: ✭ 31 (+40.91%)
Mutual labels:  push-notifications, fcm
Onesignal Cordova Sdk
OneSignal is a free push notification service for mobile apps. This plugin makes it easy to integrate your Ionic, PhoneGap CLI, PhoneGap Build, Cordova, or Sencha Touch app with OneSignal. Supports Android, iOS, and Amazon's Fire OS platforms. https://onesignal.com
Stars: ✭ 214 (+872.73%)
Mutual labels:  push-notifications, fcm
Pushnotification
PHP and Laravel Package to send push notifications to Android and IOS devices.
Stars: ✭ 395 (+1695.45%)
Mutual labels:  push-notifications, fcm
Uniqush Push
Uniqush is a free and open source software system which provides a unified push service for server side notification to apps on mobile devices.
Stars: ✭ 1,238 (+5527.27%)
Mutual labels:  push-notifications, fcm
Pushnotificationplugin
Push Notification Plugin for Xamarin iOS and Android
Stars: ✭ 177 (+704.55%)
Mutual labels:  push-notifications, fcm
Node Pushnotifications
Push notifications for GCM, APNS, MPNS, AMZ (automatic detection from device token)
Stars: ✭ 432 (+1863.64%)
Mutual labels:  push-notifications, fcm
Onesignal Ionic Example
Stars: ✭ 89 (+304.55%)
Mutual labels:  push-notifications, fcm
Aerogear Unifiedpush Server
🚀 AeroGear UnifiedPush Server
Stars: ✭ 432 (+1863.64%)
Mutual labels:  push-notifications, fcm
React Native Firebase
🔥 A well-tested feature-rich modular Firebase implementation for React Native. Supports both iOS & Android platforms for all Firebase services.
Stars: ✭ 9,674 (+43872.73%)
Mutual labels:  push-notifications, fcm
Node Gcm
A NodeJS wrapper library port to send data to Android devices via Google Cloud Messaging
Stars: ✭ 1,286 (+5745.45%)
Mutual labels:  push-notifications, firebase-cloud-messaging
Net Core Push Notifications
Lightweight .NET Core Push Notifications for Android and iOS
Stars: ✭ 105 (+377.27%)
Mutual labels:  push-notifications, fcm
mod push appserver
Simple and extendable appserver for XMPP pushes (aka. XEP-0357)
Stars: ✭ 24 (+9.09%)
Mutual labels:  push-notifications, fcm
azure-notificationhubs-java-backend
Azure Notification Hubs SDK for Java
Stars: ✭ 31 (+40.91%)
Mutual labels:  push-notifications, fcm

fcm

GoDoc Build Status Go Report Card

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

More information on Firebase Cloud Messaging

Getting Started


To install fcm, use go get:

go get github.com/edganiukov/fcm

or dep, add to the Gopkg.toml file dependency:

[[constraint]]
  name = "github.com/edganiukov/fcm"
  version = "0.3.0"

and then run:

dep ensure

Sample Usage


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

package main

import (
	"github.com/edganiukov/fcm"
)

func main() {
	// Create the message to be sent.
	msg := &fcm.Message{
     		Token: "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.Fatal(err)
	}

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

TODO:


  • Retry only failed messages while multicast messaging.
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].