All Projects → Raudius → Pushraven

Raudius / Pushraven

Licence: mit
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.

Programming Languages

java
68154 projects - #9 most used programming language

Projects that are alternatives of or similar to Pushraven

Pyfcm
Python client for FCM - Firebase Cloud Messaging (Android, iOS and Web)
Stars: ✭ 674 (+905.97%)
Mutual labels:  firebase, firebase-cloud-messaging, fcm
Go Fcm
Firebase Cloud Messaging ( FCM ) Library using golang ( Go )
Stars: ✭ 212 (+216.42%)
Mutual labels:  firebase, firebase-cloud-messaging, fcm
Pushnotifications
🐉 A macOS, Linux, Windows app to test push notifications on iOS and Android
Stars: ✭ 1,813 (+2605.97%)
Mutual labels:  firebase, push, notification
Fcm Toolbox
📲 Firebase Cloud Messaging toolbox
Stars: ✭ 217 (+223.88%)
Mutual labels:  firebase, firebase-cloud-messaging, fcm
Push Fcm Plugin
Official Firebase Cloud Messaging plugin for Push.js v1.0 🔥
Stars: ✭ 37 (-44.78%)
Mutual labels:  firebase, push, fcm
Kotlin Firebase Group Chat
Group and OneonOne chat using firebase built in Kotlin similar to whatsapp.
Stars: ✭ 44 (-34.33%)
Mutual labels:  firebase, firebase-cloud-messaging, fcm
Fcm
Firebase Cloud Messaging (FCM) notifications channel for Laravel
Stars: ✭ 169 (+152.24%)
Mutual labels:  firebase, firebase-cloud-messaging, fcm
PushNotifications
Push Notification using Embarcadero Rad Studio Tokyo 10.2.3 on Android and Apple Devices written in C++ and Delphi
Stars: ✭ 12 (-82.09%)
Mutual labels:  notification, fcm, push
fcmpush
Firebase Cloud Messaging API wrapper for Ruby, suppot HTTP v1 API including access_token auto refresh feature.
Stars: ✭ 44 (-34.33%)
Mutual labels:  fcm, firebase-cloud-messaging, push
andpush
Android Push Notification in Ruby: The fastest client for FCM (Firebase Cloud Messaging)
Stars: ✭ 83 (+23.88%)
Mutual labels:  fcm, firebase-cloud-messaging, push
Falconmessenger
🌟🌟🌟🌟🌟 Falcon Messenger is a Fast and Beautiful cloud-based messaging app. With iOS and IPadOS Support. Available on the App Store.
Stars: ✭ 310 (+362.69%)
Mutual labels:  firebase, messaging, firebase-cloud-messaging
Emberfire
The officially supported adapter for using Firebase with Ember
Stars: ✭ 689 (+928.36%)
Mutual labels:  firebase, messaging
Applozic Android Sdk
Android Real Time Chat & Messaging SDK
Stars: ✭ 611 (+811.94%)
Mutual labels:  firebase-cloud-messaging, fcm
Quickstart Unity
Firebase Quickstart Samples for Unity
Stars: ✭ 553 (+725.37%)
Mutual labels:  firebase, firebase-cloud-messaging
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 (-74.63%)
Mutual labels:  firebase, firebase-cloud-messaging
Chat Sdk Ios
Chat SDK iOS - Open Source Mobile Messenger
Stars: ✭ 813 (+1113.43%)
Mutual labels:  firebase, messaging
Espionage
An android application that can be run in background and give commands from fcm console to share sensor data
Stars: ✭ 18 (-73.13%)
Mutual labels:  firebase, fcm
Chatapp
Chat App with all functionality private chat, contacts, friends request, find friends,for profile settings image cropper functionality, settings, logout also send text, image and all type of files, delete your files for you and everyone , login with email and mobile number and real time database firebase and for notification purpose Node Js used.
Stars: ✭ 25 (-62.69%)
Mutual labels:  firebase, firebase-cloud-messaging
Chat21 Ios Sdk
DEPRECATED
Stars: ✭ 15 (-77.61%)
Mutual labels:  firebase, messaging
Rxfirebase
Rxjava 2.0 wrapper on Google's Android Firebase library.
Stars: ✭ 509 (+659.7%)
Mutual labels:  firebase, firebase-cloud-messaging

Pushraven

A library to easily send notifications over Firebase Cloud Messaging (FCM). The library was built with the purpose of making the process of sending messages as simple and modular as posible.

Legacy API

FCM has had a total makeover for the new "REST v1 API". I have decided not to include backwards compatibility in Pushraven.
If you wish to use the (simpler) legacy API see Legacy Instructions

How to use Pushraven

0. Import Pushraven to your Project.

NOTE: New package name to remove redundant 'pushraven' in groupId!
Add Pushraven.jar and it's dependencies to your project. Or add Pushraven as a dependency:
Maven:

<dependency>
  <groupId>us.raudi</groupId>
  <artifactId>pushraven</artifactId>
  <version>1.0.2</version>
</dependency>

Gradle:

compile group: 'us.raudi', name: 'pushraven', version: '1.0.2'

1. Give Pushraven your Project ID and your Service Account

Both of these can be found in your Firebase console, under Project Settings:

  • The ID is found in the "General" tab
  • The Service Account JSON file can be downloaded from the "Service Account" tab.
Pushraven.setCredential(new File("service_account.json");	
Pushraven.setProjectId("fcmtest-f57d4");

2. Build your 'Message' using parameters from the FCM reference[1]

In Pushraven all the JSON Objects from the API are implemented as classes, and all fields are implemented as methods.

2.1 Create Notification

Notification not = new Notification()
		.title("Hello World")
		.body("This is a notification");

2.2 (Optional) Create target specific configurations.

AndroidConfig droidCfg = new AndroidConfig()
			.notification(
				new AndroidNotification()
				.color("#ff0000")
			)
			.priority(Priority.HIGH);

2.3 Create the Message (using Notification and any configs)

Message raven = new Message()
		.name("id")
		.notification(not)
		.token(CLIENT_ID) // could instead use: topic(String) or condition(String)
		.android(droidCfg);
NOTE: Missing attributes

If the API updates and implements new fields to any class, these may not have been added to Pushraven yet. You can use the following methods (for any of the constructor classes: Message, Notification, config classes...):

addAttribute(String key, Object value);
addAttributeMap(String key, Map<?, ?> map);
addAttributeArray(String key, Collection<?> arr);
addAttributePayload(String key, Payload payload); // see: Payload.java

3. Send the raven

Pushraven.push(raven);
// or (if you want to access the response)
FcmResponse response = Pushraven.push(raven);

[1] https://firebase.google.com/docs/reference/fcm/rest/v1/projects.messages

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].