,
This commit is contained in:
@@ -169,7 +169,7 @@ public class CgGeoFencingActivity extends AppCompatActivity implements OnMapRead
|
||||
SocketHelper.getInstance().removeLocationUpdateListener(careGiverData.patientId + "");
|
||||
}
|
||||
|
||||
SocketHelper.getInstance().closeConnection();
|
||||
// SocketHelper.getInstance().closeConnection();
|
||||
}
|
||||
|
||||
private void establishSocketConnection() {
|
||||
|
||||
@@ -29,6 +29,8 @@ public class LocationService extends Service implements LocationClient.DefaultLo
|
||||
|
||||
public static final int LOCATION_INTERVAL_BASE_TIME = 25 * 1000;
|
||||
|
||||
private static final int LOCATION_UPDATES_NOTIFICATION_ID = 112;
|
||||
|
||||
private DefaultLocationClient locationClient;
|
||||
|
||||
@Override
|
||||
@@ -83,8 +85,8 @@ public class LocationService extends Service implements LocationClient.DefaultLo
|
||||
// do nothing
|
||||
}
|
||||
|
||||
startForeground(1, notification);
|
||||
notificationManager.notify(1, notification);
|
||||
startForeground(LOCATION_UPDATES_NOTIFICATION_ID, notification);
|
||||
notificationManager.notify(LOCATION_UPDATES_NOTIFICATION_ID, notification);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
@@ -114,12 +114,6 @@ public class DashBoardActivity extends AppCompatActivity implements CgHomeContra
|
||||
super.attachBaseContext(newBase);
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void onDestroy() {
|
||||
super.onDestroy();
|
||||
SocketHelper.getInstance().closeConnection();
|
||||
}
|
||||
|
||||
private void setGeofenceAndLocationUpdates() {
|
||||
// retrieving geofence
|
||||
viewModel.getGeoFenceDetails(AppUtil.getPatientUid(this) + "",
|
||||
|
||||
Reference in New Issue
Block a user