是否可以缩短临时构建配置文件过期之前的时间?
我有一位客户的发票很晚,并承诺给我邮寄一张支票,但他们需要应用程序的新临时版本,因为配置文件已过期。我想要进行新的构建,但为临时配置文件设置更短的到期限制,或者如果他们不付款则能够撤销该配置文件。
是否可以使 Ad Hoc 配置文件的过期时间早于 90 天默认值,或者撤销配置文件是否会禁用 Ad Hoc 构建?
I've got a client who has a very late invoice and has promised to mail me a check, but they need a new Ad Hoc build of the app because the provisioning profile has expired. I'd like to do a new build but set a shorter expiration limit for the Ad Hoc provisioning profile or be able to revoke the profile if they don't pay.
Is it possible to get the Ad Hoc provisioning profile to expire sooner than the 90 day default, or alternatively, does revoking the provisioning profile disable the Ad Hoc build?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
插入对服务器的调用作为第二次身份验证怎么样...有一个带有“是”的文件,如果它保持“是”,则应用程序将运行配置文件的生命周期。如果由于未付款而将其更改为“否”(或任何非“是”),则推送一些模式视图而不具有关闭功能。 (但是,我会考虑根据应用程序的其他功能翻转是/否......例如,如果他们进入飞行模式,那么实际上无法到达是,它会显示块,所以您可能想让它仅在可以得到“否”的情况下显示该块...这样,如果他们去飞机,他们就能够击败它,但也许这会禁用应用程序的其他部分...所以它需要您根据应用程序的功能进行调用
(然后在后续版本的付款后删除此功能)。
What about inserting a call to your server as a second authentication...have a file with "yes", and if it stays "yes" the app will run the life of the provisioning profile. If you change it to "no" (or anything non-'yes') due to non-payment, push some modal view without a dismiss ability. (BUT, I would consider flipping the yes/no depending on the other features of the app...for instance, if they went to airplane mode, so couldn't actually get to the yes, it'd display the block, so you might want to make it only display the block if it CAN get 'no'...so they'd be able to defeat it if they went to airplane, but maybe that would disable other parts of the app...so it'd be a call for you to make based on the function of the app.
(and then remove this function on subsequent builds post-payment)
你不能。但是您可以向应用程序添加代码,以便在每次启动时检查网站,或者从后台检查网站,告诉它是否继续。
You cannot. But you could add code to your app to check a website each time it's launch or come from background which will tell it to continue or not.
我用他的代码。如果用户更改其设备的日期,这将不起作用,但如果他不更改,那就可以解决问题(请注意,我使用法国日期样式,您可能需要更改它):
您只需要在应用程序时检查 isDateDepcerated启动或重新启动,如果为 true,则启动 displayNoLaunchingScreen。
I use his code. This will not work if the user change the date of its device but if he doesn't, that does the trick (note that I use french date style, you may have to change that) :
You just need to check isDateDepcrated when you application starts or restarts and if it is true, you launch displayNoLaunchingScreen.