set ScheduleAppointmentCollection in SfSchedule causes crash when Apple review

I have an app in Xamarin forms for Android and iOS. In Android all works fine. In iOS it works in simulator and real device debug, but when Apple is reviewing the App, it crashes when SfSchedule page is navigated. The error is launched when the AppointmentCollection is set.


This is the error:


ViewModelBase.RaisePropertyChanged (System.String propertyName)

SIGABRT: Specified argument was out of the range of valid values. Parameter name: Value is outside the range of NSDate

Stack traces
  • NSDate.op_Explicit (Foundation.NSDate d)
  • ScheduleHelper.ConvertToDateTime (Foundation.NSDate date)
  • AppointmentHelper.ToDateTimeValue (Foundation.NSDate date)
  • AppointmentEngine.GenerateScheduleAppointments (System.Collections.IEnumerable itemsSource, Syncfusion.SfSchedule.iOS.AppointmentMapping appointmentMapping)
  • SFSchedule.GenerateAppointments ()
  • SFSchedule.set_ItemsSource (System.Collections.IEnumerable value)
  • ViewModelBase.RaisePropertyChanged (System.String propertyName)
  • SolicitudesViewModel.set_Solicitudes (Syncfusion.SfSchedule.XForms.ScheduleAppointmentCollection value)
  • SolicitudesViewModel.CreateAppointments (VInfoPOL.App.Model.SolicitudSchedule solicitudesSchedule)
  • SolicitudesViewModel.ObtenerSolicitudes (System.DateTime now)
  • AsyncMethodBuilderCore+<>c.<ThrowAsync>b__7_0 (System.Object state)
  • Application.Main (System.String[] args)

3 Replies

MS Muniappan Subramanian Syncfusion Team January 19, 2021 01:35 PM UTC

Hi David, 
 
Thank you for contacting Syncfusion support. 
 
We have checked the reported issue “Sfschedule crashed when apple review “and we are unable to reproduce the mentioned issue from our end. We have checked in the scenario by setting Datasource to the schedule. Please refer to the tested sample in the following link for your reference. 
 
 
 Please check the sample and let us know if you still facing the same issue? If not, please modify the sample based on your scenario and revert us back with the following details, 
 
·         Share schedule code snippets  
·         Share the issue replicate video.  
·         Share the target version used in sample.  
·         Share Xamarin.Forms version 
·         Share the Syncfusion version used in sample.  
 
Regards, 
Muniappan S. 



DA David January 20, 2021 10:04 AM UTC

More info about this error.

Only happens when I set the bindable property instead of using Add() in the collection. If I Clear() the collection and Add() items, then works ok.

Only happens during Apple review, in simulator and device debug work ok.


MS Muniappan Subramanian Syncfusion Team January 21, 2021 01:18 PM UTC

Hi David, 
 
We already have an incident under your Direct trac account to follow up with this query. We suggest you follow up with the incident for further updates. Please log in using the below link.  
 
 
Regards,   
Muniappan S. 


Loader.
Up arrow icon