All Downloads are FREE. Search and download functionalities are using the official Maven repository.

co.easimart.EasimartBroadcastReceiver Maven / Gradle / Ivy

package co.easimart;

import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;

/**
 * @exclude
 */
public class EasimartBroadcastReceiver extends BroadcastReceiver {
  private static final String TAG = "co.easimart.EasimartBroadcastReceiver";

  @Override
  public void onReceive(Context context, Intent intent) {
    // This exists to restart the service when the device is first turned
    // on, or on other system events for which we want to ensure that the
    // push service is running.
    EasimartLog.d(TAG, "received " + intent.getAction());
    PushService.startServiceIfRequired(context);
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy