(eSIM Integration iOS) How to use restricted API “addPlan” to enable e-sim profile in iOS device

前端 未结 2 1805
南笙
南笙 2021-02-02 01:24

After searching everywhere I found there is a way to add eSIM in iPhone using the following API

func addPlan(with: CTCellularPlanProvisioningRequest, completion         


        
2条回答
  •  长情又很酷
    2021-02-02 01:32

    This API is only available for carriers. You need a special entitlement from Apple to be able to call it in your application, otherwise you will get the error you mentioned.

    Just to clarify something about eSIMs; there are several ways to add eSIM to the device:

    • the simplest way that most carriers are implementing now is through scanning a QR code from the device settings, which does not require any development work on the carrier's app.
    • The other way is to install the eSIM profile using the carrier app, which can only be done with a special entitlement that is provided by Apple. The entitlement allows you to call CTCellularPlanProvisioning.addPlan(with: ) API that you referred to you in your question

提交回复
热议问题