Thank you the response,
I am trying to show in main app. Which permission are you asking for? I have already got Screen Time permission by this AuthorizationCenter.shared.requestAuthorization(for: .individual).
In my app, When I click just a button I just need to navigate to a view where device activity report will show. There I am calling DeviceActivityReport(appsContext, filter: filter) function which is showing me the above error.