This commit is contained in:
14Sandee
2023-12-15 13:14:14 +05:30
parent eb88540fa5
commit 799fdf0e31
4 changed files with 16 additions and 1 deletions

View File

@@ -1,6 +1,18 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="deploymentTargetDropDown">
<runningDeviceTargetSelectedWithDropDown>
<Target>
<type value="RUNNING_DEVICE_TARGET" />
<deviceKey>
<Key>
<type value="SERIAL_NUMBER" />
<value value="RZCW41EJRPN" />
</Key>
</deviceKey>
</Target>
</runningDeviceTargetSelectedWithDropDown>
<timeTargetWasSelectedWithDropDown value="2023-12-15T07:22:33.208914Z" />
<targetsSelectedWithDialog>
<Target>
<type value="QUICK_BOOT_TARGET" />

View File

@@ -33,6 +33,8 @@ public class BootCompleteReceiver extends BroadcastReceiver {
if (Intent.ACTION_BOOT_COMPLETED.equals(intent.getAction())) {
AppUtil.updateSeniorOutOfGeofence(context, false);
// starting over the Location updates service again
Intent locationUpdateIntent = new Intent(context, LocationService.class);
locationUpdateIntent.setAction(LocationService.ACTION_START_LOCATION_UPDATES);

View File

@@ -143,6 +143,8 @@ public class NotificationService implements INotificationServiceExtension {
Log.d(GEOFENCE_TAG, "DATA RECEIVED WITH NOTIFICATION : Lat/Lng: " + lat + "," + lng + " Radius: " + radius + " message: " + message);
if (radius >= 0){
AppUtil.updateSeniorOutOfGeofence(iNotificationReceivedEvent.getContext(), false);
AppUtil.updatePatientGeofence(iNotificationReceivedEvent.getContext(),
lat+"", lng+"",
radius+"", "kms", message);

View File

@@ -27,7 +27,6 @@ public class PatientLocationUpdatesReceiver extends BroadcastReceiver {
public static final String LOCATION_REQUEST_TAG = "LOCATION_UPDATE_TAG";
public static final String LOCATION_EXTRA_KEY = "com.google.android.location.LOCATION";
public static final int LOCATION_UPDATES_REQUEST_CODE = 1010;
@Override
public void onReceive(Context context, Intent intent) {