Skip to content

Instantly share code, notes, and snippets.

View gajerarajnit's full-sized avatar

Rajnit Gajera gajerarajnit

View GitHub Profile
@Antarix
Antarix / FirebaseDataReceiver.java
Created November 21, 2016 10:22
Firebase Android Sample for managing notification
import android.content.Context;
import android.content.Intent;
import android.support.v4.content.WakefulBroadcastReceiver;
import android.util.Log;
/**
* This is called whenever app receives notification
* in background/foreground state so you can
* apply logic for background task, but still Firebase notification
* will be shown in notification tray