widget timeline not executed at iOS 15

My widget updates fine at iOS 14.x but it is not updating on iOS 15. If I install my app on a iOS15 device, the widget updates once directly after installation, but than the timeline is not executed anymore. The same widget works perfectly at iOS 14.x and updates every 15 minutes as designed. Even WidgetCenter.shared.reloadAllTimelines() is not working from the main app. Can someone help? Is there any necessary change for iOS 15 that I have missed?

here is the code:


    func getTimeline(in context: Context, completion: @escaping (Timeline<SolarEntry>) -> ()) {
        var entries: [SolarEntry] = []

        Loadinggroup.enter()
        InitLoadData()
        Loadinggroup.notify(queue: .main) {

        // Generate a timeline updating every 15 min, starting from the current date.

        let currentDate = Date()

//        refresh every 15 min:

            let entryDate = Calendar.current.date(byAdding: .minute, value: 15, to: currentDate)!

            let entry = SolarEntry(date: entryDate, solarout:solaroutString, gridout:gridoutString, acpower: acpowerString, batpower: batpowerString, batstate: batstateString, lastupdate:  lastupdateString)

            

            entries.append(entry)

//        }



        let timeline = Timeline(entries: entries, policy: .atEnd) 

        completion(timeline)

    }

    }

Same problem here. My widget app did update well 'getTimeline' in iOS14, but not in iOS 15. Is this the problem of iOS15?

I am getting more and more confused. If I compile my app with Xcode 13 the widgets stop working also at iOS 14.x…

I have the same problem on iOS 14/15 with Xcode 13

same here, I am very confused.

I have problem on iOS 14, when uninstall then install again function getTimeLine not called, WidgetCenter.shared.getCurrentConfig still cache widget old

I have the same problem - so has this issue been solved, or have alternate solution?

widget timeline not executed at iOS 15
 
 
Q