Anyway to get the number of widgets installed?

So if we use getcurrentconfigurations per this discussion, we only get the number of unique (kind/family/configurations) combination there are installed.

That is to say, that if a user installs more than one of the same kind, family and static configuration, we only get one configuration for all those widgets installed.

Is this expected? Is there a way to get the number of instances for the widget?
This works for me:

Code Block
  func checkNumWidgetsInstalled() {
    WidgetCenter.shared.getCurrentConfigurations { [weak self] result in
      guard let strongSelf = self else { return }
      switch result {
        case let .success(widgets):
          let myWidgetCount = widgets.count
           
          for widg in widgets {
            let intent = widg.configuration as? WidgetConfigIntent
            if let intent = intent {
              print("Widget: \(widg) family: \(widg.family) kind: \(widg.kind) config: \(intent)")
            }
          }
          DispatchQueue.main.async {
            strongSelf.updateNumWidgetsInstalled(myWidgetCount)
          }
        case let .failure(error): print(error)
      }
    }
  }
   
  func updateNumWidgetsInstalled(_ count: Int) {
    print("WIDGET COUNT: \(count)")
    DataManager.saveNumWidgetsInstalled(count)
    numWidgetsInstalled = count
  }

Anyway to get the number of widgets installed?
 
 
Q