im having the same issue now , the getTimeline is being called multiple times, can't figure out what's going on.
plain simple entry here:
let currentDate = Date()
let updateDate = Calendar.current.date(byAdding: .hour, value: 5, to: currentDate)!
print("NEW Current Date:\(currentDate) update Date is: \(updateDate)")
let entry = SimpleEntry(date: Date(),configuration: ConfigurationIntent(), items: DummyData.data)
let timeline = Timeline(entries: [entry], policy: .after(updateDate))
completion(timeline)
-- DEBUG console , running real device --
NEW Current Date:2023-10-18 13:58:34 +0000 update Date is: 2023-10-18 18:58:34 +0000
NEW Current Date:2023-10-18 13:58:37 +0000 update Date is: 2023-10-18 18:58:37 +0000
NEW Current Date:2023-10-18 13:58:38 +0000 update Date is: 2023-10-18 18:58:38 +0000
NEW Current Date:2023-10-18 13:58:40 +0000 update Date is: 2023-10-18 18:58:40 +0000
NEW Current Date:2023-10-18 13:58:40 +0000 update Date is: 2023-10-18 18:58:40 +0000`