Are ESim related WinRT APIs require Package Identity?
Hi, team
I am trying to use WinRT API (under name space Windows.Networking.NetworkOperators) to read ESim ID on my laptop. I created a UWP App and this api worked. However the project i'm working on is not a UWP app and it's based on .NET 4.6. I imported WinRT APIs by nuget and tested two classes under this namespace (MobileBroadbandModem and EsimManager). MobileBroadbandModem returned the information successfully but EsimManager failed when i tried to call EsimManager.TryCreateESimWatcher(). This function just returned null. I saw that there are some APIs require Package Identity to work normally. But I didn't see Windows.Networing.NetworkOperators on the list. So could you please tell me if this funtion requires Package Identity? If not, what's the possible reason that this funtion works in a UWP App but fails in my project on the same device? Thanks.