This commit is contained in:
14Sandee
2023-11-27 21:03:43 +05:30
parent 89e08ee024
commit 3c3d108098
6 changed files with 13 additions and 5 deletions

View File

@@ -569,7 +569,7 @@ public abstract class AppUtil {
private static final String PATIENT_GEOFENCE_CG_ID = "pg_cg_uid";
private static final String PATIENT_GEOFENCE_CHANNEL_ID = "pg_channel_uid";
private static final String PATIENT_GEOFENCE_PATIENT_PRINCIPLE_ID = "pg_channel_uid";
private static final String PATIENT_GEOFENCE_PATIENT_PRINCIPLE_ID = "pg_patient_geofence_uid";
public static void updatePatientGeofenceChatsCred(Context context,
int cg_id,

View File

@@ -82,7 +82,14 @@ public class NotificationService implements INotificationServiceExtension {
// do nothing
}
iNotificationReceivedEvent.getContext().sendBroadcast(intent);
Intent broadcastIntent = new Intent(NOTIFICATION_ACTION);
broadcastIntent.putExtra(CONTENT_TYPE_KEY, content_type);
broadcastIntent.putExtra(NOTIFICATION_BODY_KEY, iNotificationReceivedEvent.getNotification().getBody());
broadcastIntent.putExtra(NOTIFICATION_TITLE_KEY, iNotificationReceivedEvent.getNotification().getTitle());
broadcastIntent.putExtra(NOTIFICATION_CONTENT_ID_KEY, id);
broadcastIntent.putExtra(NOTIFICATION_SENIOR_ADDRESS_KEY, senior_current_address);
iNotificationReceivedEvent.getContext().sendBroadcast(broadcastIntent);
if (Constants.GEOFENCING_RADIUS_ADDED.equals(content_type)
|| Constants.GEOFENCING_RADIUS_UPDATED.equals(content_type)

View File

@@ -86,7 +86,7 @@ public class CgDashBoardFragment extends Fragment implements
private static CgDashBoardFragment fragment;
private CgDashBoardFragment(){
public CgDashBoardFragment(){
// required empty
}

View File

@@ -49,7 +49,7 @@ public class MyPatientFragment extends Fragment implements CgHomeContracts.GetGe
private static MyPatientFragment myPatientFragment;
private MyPatientFragment() {
public MyPatientFragment() {
// required empty
}

View File

@@ -103,6 +103,7 @@ public class GeoFenceBroadcastReceiver extends BroadcastReceiver {
return;
}
Log.d(GEOFENCE_TAG, "notifyPatient: " + chatsCred[2]);
// sending message
new SendMessageTask(message, chatsCred[0], chatsCred[1], chatsCred[2], chatsCred[3]).execute();
}