Can I get any examples of usage of Mobilebroadbandpin class? Actually I want to create a cmd tool which used for pin operations
Can I get any examples of usage of Mobilebroadbandpin class? Actually I want to create a cmd tool which used for pin operations
@AkhilGNair-6823 Do you have any other issues? Please feel free to contact us if you still have problems. If Nico's reply solves your issue, you could accept it as answer, so that other people who have the some issue could check that.
Hello, Welcome to Micorosoft Q&A,
Can I get any examples of usage of Mobilebroadbandpin class? Actually I want to create a cmd tool which used for pin operations
Please refer this document to get MobileBroadbandModem instance, then access Mobilebroadbandpin step by step. MobileBroadbandModem -> DeviceInformation -> PinManager->GetPin()
var modem = MobileBroadbandModem.GetDefault();
var modeminfo = modem.DeviceInformation;
var pinManager = modeminfo.PinManager;
var pin = pinManager.GetPin(MobileBroadbandPinType.FirstSimPin);
Please note for using above code, you need to enable cellularDeviceControl cellularDeviceIdentity capability,
If you want to use this API and publish your app to the Store, you will need special approval. For more information, see the Special and restricted capabilities section under App capability declarations.
If the response is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.
Thanks for the reply.
i would like to use this API for some testing related to SIM pin and not to publish. Still I require the approval ?
Is there any app already available in store which satisfies the same.
You just need to add the capability to the package manifest file that allow the api permission. And it need not require the approval, you could use it directly after add above capability.
7 people are following this question.