pub fn ensure_permission_requested<R: Runtime>(app: &AppHandle<R>)Expand description
Ensure the OS notification authorization has been requested at least once so scheduled break / pre-break / screen-time banners actually surface. Queries the current permission, and only on an undetermined state does it raise the request (which shows the macOS authorization dialog and registers the app with the notification centre).
The pure undetermined-vs-determined decision lives in
should_request_notification_permission; everything here is the
plugin-FFI shim around it.