From 62b9b3e35c14a16c552834df3c877f082b87ed96 Mon Sep 17 00:00:00 2001 From: haroon amjad Date: Mon, 13 Mar 2023 11:17:33 +0300 Subject: [PATCH] calendar permission handled in iOS --- ios/Podfile | 4 ++++ lib/pages/MyAppointments/widgets/AppointmentActions.dart | 1 + 2 files changed, 5 insertions(+) diff --git a/ios/Podfile b/ios/Podfile index ca8f0966..e4393e8d 100644 --- a/ios/Podfile +++ b/ios/Podfile @@ -46,6 +46,10 @@ post_install do |installer| 'PERMISSION_LOCATION=1', 'PERMISSION_CAMERA=1', 'PERMISSION_MICROPHONE=1', + ## dart: PermissionGroup.calendar + 'PERMISSION_EVENTS=1', + ## dart: PermissionGroup.reminders + 'PERMISSION_REMINDERS=1', ] build_configuration.build_settings['EXCLUDED_ARCHS[sdk=iphonesimulator*]'] = 'arm64 i386' if build_configuration.build_settings['WRAPPER_EXTENSION'] == 'bundle' diff --git a/lib/pages/MyAppointments/widgets/AppointmentActions.dart b/lib/pages/MyAppointments/widgets/AppointmentActions.dart index e7e82fc6..d0fa8669 100644 --- a/lib/pages/MyAppointments/widgets/AppointmentActions.dart +++ b/lib/pages/MyAppointments/widgets/AppointmentActions.dart @@ -107,6 +107,7 @@ class _AppointmentActionsState extends State { locator().appointment.appointment_detail_action(appointment: widget.appo, action: 'hospital location'); break; case "addReminder": + GAnalytics.APPOINTMENT_DETAIL_FLOW_TYPE = 'my appointment'; showReminderDialog( context, new DateFormat("dd MMM yyyy hh:mm")