Skip to content

Auto Scheduling Events #671

@majidsaleem105

Description

@majidsaleem105

Hello @gavirawson-apple,

We're trying to schedule some tasks so that they only appear for a specific time on the app side.
For example, we want people to see a task at 08 o'clock in the morning and remove that task from the app at 09 o'clock. So, it should be displayed before 8 o'clock and after 9 o'clock during that day.

I tried to achieve the goal using the
surveySchedule = OCKScheduleElement(start: thisMorning!, end: expiryDate!, interval: DateComponents(hour: 1) )
Where thisMorning = 2022-10-07 08:00:00, and expiryDate = 2022-10-07 09:00:00

But it didn't work as expected. It appears in the app all the time.

Please advise me on how I can achieve my goal.

Thank You,

  • Majid S.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions