private static void showPlayServicesNotAvilableNotification() {
    NotificationCompat.Builder nb = new NotificationCompat.Builder(App.getContext());
    NotificationManager nm =
        (NotificationManager) App.getContext().getSystemService(Context.NOTIFICATION_SERVICE);

    nb.setContentTitle(App.getContext().getString(R.string.app_name))
        .setSmallIcon(R.drawable.ic_notification)
        .setContentText("Google Play Services are not available")
        .setPriority(android.support.v4.app.NotificationCompat.PRIORITY_MIN);
    nm.notify(Defaults.NOTIFCATION_ID, nb.build());
  }
  public static boolean checkPlayServices() {
    playServicesAvailable =
        ConnectionResult.SUCCESS
            == GooglePlayServicesUtil.isGooglePlayServicesAvailable(App.getContext());

    if (!playServicesAvailable) showPlayServicesNotAvilableNotification();

    return playServicesAvailable;
  }