|
|
|
@ -149,6 +149,7 @@ extension HMG_Geofence{
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
func notifyServer(forRegion:CLRegion, transition:Transition, location:CLLocation?){
|
|
|
|
func notifyServer(forRegion:CLRegion, transition:Transition, location:CLLocation?){
|
|
|
|
|
|
|
|
showNotification(title: "Notifying server..." , subtitle: forRegion.identifier, message: "")
|
|
|
|
if let userProfileJson = UserDefaults.standard.string(forKey: "user-profile"),
|
|
|
|
if let userProfileJson = UserDefaults.standard.string(forKey: "user-profile"),
|
|
|
|
let userProfile = dictionary(from: userProfileJson), let patientId = userProfile["PatientID"] as? String{
|
|
|
|
let userProfile = dictionary(from: userProfileJson), let patientId = userProfile["PatientID"] as? String{
|
|
|
|
|
|
|
|
|
|
|
|
|