关于访问设备SIM卡数据,如SIM序列号和用户电话号码,我做了很多研究,以下是我的发现:
>通过使用iOS SDK的私有API,我们可以从SIM卡中提取所需的信息(如果已经存储在SIM卡上).
>该问题与提交应用程序的规则和规则有关.在Apple商店,由于Apple拒绝任何访问SIM卡的应用程序,因为他们认为此类行为会破坏用户隐私和安全性.
>此功能用于未参加APPStore提交的应用程序.
参考文献:
> How could I read information from SIM card in iPhone?
> Programatically get own Phone Number in iPhone OS 4.0
> How can I get the phone number of my iPhone device?
> Read/write certificates on a SIM card – iOS
我发现的所有帖子和教程都说我无法从设备SIM卡中提取数据而不会面临苹果拒绝!
我的问题是,有没有办法访问SIM卡信息并在Appstore上成功发布我的应用程序?我赞赏苹果提交规则和条例文件中有关“无SIM卡数据访问”的部分内容!
最佳答案 我的问题是,有没有办法访问SIM卡信息并在Appstore上成功发布我的应用程序? – 没有办法.文档中没有“无SIM卡数据”的直接参考.
由于您已经阅读过SIM卡数据,因此无法使用Apple SDK进行访问.以下是Apple Developer Document的一部分:
The following guidelines can help you ask for user data in ways that
help people feel comfortable.Make sure users understand why they’re being asked to share their
personal data. It’s natural for people to be suspicious of a request
for their personal information if they don’t see an obvious need for
it. To avoid making users uncomfortable, make sure the alert appears
only when they attempt to use a feature that clearly needs to know
their information. For example, people can use Maps when Location
Services is off, but they see an alert when they access the feature
that finds and tracks their current location.Describe why your app needs the information, if it’s not obvious. You
can provide text that appears in the alert, below a system-provided
title such as ““App Name” Would Like to Access Your Contacts”. You
want this text to be specific and polite so that people understand why
you’re asking for access to their information and don’t feel
pressured. Your reason text should:Not include your app name. The system-provided alert title already
includes your app name. Clearly describe why your app needs the data.
If appropriate, you might also explain ways in which your app will not
use the data. Use user-centric terminology and be localizable. Be as
short as possible, while still being easy to understand. As much as
possible, avoid supplying more than one sentence. Use sentence-style
capitalization. (Sentence-style capitalization means that the first
word is capitalized, and the rest of the words are lowercase unless
they are proper nouns or proper adjectives.) Ask permission at app
startup only if your app can’t perform its primary function without
the user’s data. People will not be bothered by this if it’s obvious
that the main function of your app depends on knowing their personal
information.Avoid making programmatic calls that trigger the alert before the user
actually selects the feature that needs the data. This way, you avoid
causing people to wonder why your app wants their personal information
when they’re doing something that doesn’t appear to need it. (Note
that getting the user’s Location Services preference does not trigger
the alert.)For location data, check the Location Services preference to avoid
triggering the alert unnecessarily. You can use Core Location
programming interfaces to get this setting (to learn how to do this,
see Core Location Framework Reference). With this knowledge, you can
trigger the alert as closely as possible to the feature that requires
location information, or perhaps avoid an alert altogether.
你可以参考this