public class SubscribeService
extends JobIntentService
Modifier and Type | Class and Description |
---|---|
static class |
SubscribeService.Type |
Constructor and Description |
---|
SubscribeService() |
Modifier and Type | Method and Description |
---|---|
void |
onCreate() |
void |
onDestroy() |
protected void |
onHandleWork(Intent intent) |
void |
onTaskRemoved(Intent rootIntent) |
static void |
subscribeToPushes(Context context,
boolean tokenRefreshed)
Subscribe to push notifications
|
static void |
subscribeToPushesAutomatic(Context context,
boolean tokenRefreshed) |
static void |
unSubscribeFromPushes(Context context)
Unsubscribe from push notifications and delete it from QB
|
public static void subscribeToPushesAutomatic(Context context, boolean tokenRefreshed)
public static void subscribeToPushes(Context context, boolean tokenRefreshed)
context
- ContexttokenRefreshed
- The tokenRefreshed set false by default, set true if Firebase token was refreshedpublic static void unSubscribeFromPushes(Context context)
context
- Contextpublic void onCreate()
protected void onHandleWork(Intent intent)
public void onDestroy()
public void onTaskRemoved(Intent rootIntent)