简体   繁体   English

有没有一种方法可以通过密码保护从Appstore下载Mac App?

[英]Is there a way to password protect the download of mac app from appstore?

In one of our project we have 2 binaries, one for iPhone and other for mac. 在我们的一个项目中,我们有2个二进制文件,一个用于iPhone,另一个用于Mac。 These two application communicate each other to achieve the functionality. 这两个应用程序相互通信以实现功能。 We want the user to download and install the iOS app first and then let him download the Mac application. 我们希望用户先下载并安装iOS应用,然后再让他下载Mac应用。

Is there a way to restrict the user, if the user try to download the mac app before downloading the iPhone app? 如果用户在下载iPhone应用程序之前尝试下载mac应用程序,是否可以限制用户?

Short answer: If you're referring to the Mac App Store, then no. 简短答案:如果您指的是Mac App Store,则不会。

Long answer: Both, the App Store and the Mac App Store give you no way to control who downloads your app and you are not able to get information about what a user already downloaded. 长答案:App Store和Mac App Store都无法控制谁下载了您的应用,并且您无法获取有关用户已下载内容的信息。

You could of course ask for an e-mail address in your iOS app and make sure your users register to a server before you e-mail them a link to a private download page (not the Mac App Store). 您当然可以在iOS应用程序中要求一个电子邮件地址,并确保您的用户注册到服务器之前,再通过电子邮件向他们发送指向私人下载页面(而不是Mac App Store)的链接。

General advice: I think there is something wrong with the design of your app. 一般建议:我认为您的应用程序设计有问题。 It's not clear to me what you're trying to achieve and I bet your users won't either. 我不清楚您要达到什么目标,我敢打赌您的用户也不会。 If you want to make sure they pay for the iOS app before using the Mac app then just alert them in case they downloaded the Mac app first. 如果您想确保他们在使用Mac应用程序之前先为iOS应用程序付款,则只需警告他们,以防他们首先下载了Mac应用程序。 You need to write some custom service to check for this of course. 您当然需要编写一些自定义服务来进行检查。 If there is some functional problem that requires the iOS app to be launched first then you should solve this yourself and not put that burden on the shoulders of your users. 如果存在需要首先启动iOS应用程序的功能问题,那么您应该自己解决此问题,而不要把负担放在用户的肩上。

您可以允许任何人下载,但只要阻止任何操作,直到iOS应用将某种批准令牌发送到服务器或iCloud(例如)。

You have to download mac application first, and after downloading you can check if user downloaded iOS app or not, but before downloading you can't check the downloading state of iOS app, because application will upload on appStore not on your personal store. 您必须先下载mac应用程序,下载后可以检查用户是否下载了iOS应用程序,但是在下载之前您无法检查iOS应用程序的下载状态,因为应用程序将上传到appStore而不是您的个人商店中。

After downloading iOS app set some flag value on server, and check this flag value on mac app downloading, it it is 1 then download else show alert. 下载iOS应用后,在服务器上设置一些标志值,并在Mac应用下载中检查该标志值,它是1,然后下载其他显示警报。

After iOS app downloading -> Set flag value (ios Download=1) to your server.(make web service for this). 下载iOS应用程序后->将标志值(ios Download = 1)设置到您的服务器。(为此进行网络服务)。

After downloading mac app -> Call you web service to check that flag value. 下载Mac应用程序后->呼叫您的Web服务以检查该标志值。 if it is 0 then show alert to download iOS app first. 如果为0,则显示警告,请先下载iOS应用。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 从AppStore删除应用 - Deleting app from appstore 无法从Appstore下载我的应用程序的新版本,我可以下载其他应用程序 - Not able to download new version of my app from appstore, I am able to download other apps 是否优化(armv7)使armv6硬件用户无法从AppStore下载应用程序? - Will Optimized (armv7) keep armv6 hardware users from being able to download an app from the AppStore? 有什么办法以编程方式(通过应用程序)添加AppStore评论? - Is there any way to add AppStore review programmatically (by app)? 在 AppStore 中打开 App 的正确方法是什么 - What is correct way to open App in AppStore 使用UIFileSharingEnabled在应用程序外部打开密码保护/锁定sqlite数据库? - Password protect/lock sqlite database from being opened outside the app with UIFileSharingEnabled? 更改应用名称后,AppStore下载URL会更改吗? - Does AppStore download URL change after I change the app name? 首次下载AppStore时挂起的应用程序,然后始终在启动时崩溃(iOS 9) - App hanging on first AppStore download then always crashes on launch (iOS 9) 从 iPhone 发送的密码保护.gz 文件夹 - Password protect .gz folder sent from iPhone InAppPurchase在从AppStore下载的应用程序中不起作用! - InAppPurchase not working in app which is downloaded from AppStore!
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM