,
This commit is contained in:
@@ -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,
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -86,7 +86,7 @@ public class CgDashBoardFragment extends Fragment implements
|
||||
|
||||
private static CgDashBoardFragment fragment;
|
||||
|
||||
private CgDashBoardFragment(){
|
||||
public CgDashBoardFragment(){
|
||||
// required empty
|
||||
}
|
||||
|
||||
|
||||
@@ -49,7 +49,7 @@ public class MyPatientFragment extends Fragment implements CgHomeContracts.GetGe
|
||||
|
||||
private static MyPatientFragment myPatientFragment;
|
||||
|
||||
private MyPatientFragment() {
|
||||
public MyPatientFragment() {
|
||||
// required empty
|
||||
}
|
||||
|
||||
|
||||
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user