eSim支持检查

huangapple go评论103阅读模式
英文:

eSim support check

问题

I just need to detect if the device supports eSIM devices. I will not add new data for eSIM through the application (only by QR code). Is there some way to check this without generating a certificate to support eSIM? It's too long to wait, and I don't need all its functionality. I want to check with my device or not.

What I have tried:

CTCellularPlanProvisioning().supportsCellularPlan() —— always returns false (as I understand it, this is just because of the Provisioning certificate)

I also tried to get the current CTTelephonyNetworkInfo().serviceCurrentRadioAccessTechnology operators, but this also fails to quickly get data about the type of eSIM card.

Is there a method/api from Apple (or any other way) how to determine if an eSIM device?

英文:

I just need to detect if the device supports esim devices. I will not add new data for eSIM through the application (only by qr code). is there some way to check this without generating a certificate to support esim? It's too long to wait and I don't need all its functionality. I want to check with my device or not.

What I have tried:

CTCellularPlanProvisioning().supportsCellularPlan() —— always returns false (as I understand it, this is just because of the Provisioning certificate)

I also tried to get the current CTTelephonyNetworkInfo().serviceCurrentRadioAccessTechnology operators, but this also fails to quickly get data about the type of eSim card.

Is there a method / api from Apple (or any other way) how to determine if a eSim device?

答案1

得分: 1

I expect there is no way to do this directly. The property (supportsEmbeddedSIM) is on CTCellularPlanProvisioning, which requires an entitlement. You can't just call CTCellularPlanProvisioning(). You need to create a CTCellularPlanProvisioningRequest, but that's not a general purpose tool:

This class is only available to carrier apps with suitable entitlements.

You'd need to check the device model. eSIM has been supported on all iPhones since the iPhone XS. (See comments; @sergey_s notes that there are exceptions.)

英文:

I expect there is no way to do this directly. The property (supportsEmbeddedSIM) is on CTCellularPlanProvisioning, which requires an entitlement. You can't just call CTCellularPlanProvisioning(). You need to create a CTCellularPlanProvisioningRequest, but that's not a general purpose tool:

>This class is only available to carrier apps with suitable entitlements.

You'd need to check the device model. eSIM has been supported on all iPhones since the iPhone XS. (See comments; @sergey_s notes that there are exceptions.)

huangapple
  • 本文由 发表于 2023年5月24日 19:33:57
  • 转载请务必保留本文链接:https://go.coder-hub.com/76323084.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定