简体   繁体   English

需要在iOS中安装第二个应用

[英]Require install of second app in iOS

I have a 'core' app which performs some functions which are available to other apps via a URL call, eg core://get_result [as per this: http://x-callback-url.com/examples/ ] 我有一个“核心”应用程序,该应用程序执行一些功能,这些功能可以通过URL调用供其他应用程序使用,例如core:// get_result [按此: http ://x-callback-url.com/examples/]

I want to allow 3rd parties to develop by calling my core, or to produce more elaborate apps myself which call the core from within a wrapper. 我想允许第三方通过调用我的核心进行开发,或者自己制作更复杂的应用程序,这些应用程序从包装器中调用核心。 We have developed and tested this approach. 我们已经开发并测试了这种方法。

I want to use this approach because: 我要使用此方法,因为:

  • we don't want to expose our core code to 3rd party developers 我们不想向第三方开发人员公开我们的核心代码
  • we don't want users who install multiple apps that use the same core to have multiple huge downloads (rather than 1 big core and several smaller wrappers) 我们不希望安装使用同一内核的多个应用程序的用户进行大量下载(而不是1个大内核和几个较小的包装器)
  • we want to keep tight control on the content in the core (for regulatory reasons) but are more relaxed about the wrapper 我们希望对核心内容进行严格控制(出于法规方面的考虑),但对于包装器要放松一些
  • we stop people tweaking the core code this way 我们停止人们以这种方式调整核心代码
  • potentially we can open this to 'designers' using HTML5 rather than developers too... 可能我们可以使用HTML5而不是开发人员向“设计人员”开放...

I am initially interested in iOS but a similar question will arise on Android (although possible via intents rather than the url scheme). 我最初对iOS感兴趣,但是在Android上也会出现类似的问题(尽管可以通过意图而非url方案)。

The downside of this seems to be that the user has to install BOTH apps to get the functionality. 不利的一面是,用户必须安装两个应用程序才能获得该功能。 is there a way of forcing the user to download the core app if they try to install a wrapper that uses it? 如果用户尝试安装使用该应用程序的包装程序,是否可以强迫用户下载该应用程序?

Another minor gripe might be that downloading only the core puts an icon on the phone - when really the user probably doesn't ever want to use the core directly. 另一个较小的困扰可能是仅下载内核会在电话上放置一个图标-当用户可能真的不想直接使用内核时。 Is there a way to hide it? 有隐藏的方法吗?

Yeah you can detect if your other URL handler is registered and if it isn't, you can prompt users to download that app. 是的,您可以检测您的其他URL处理程序是否已注册,如果尚未注册,则可以提示用户下载该应用程序。 No, you can not hide it. 不,您无法隐藏它。

I am not sure how Apple reviewers will feel about this though. 我不确定苹果评论家对此会有何看法。 You might want to check the TOS / Guidelines. 您可能要检查TOS /准则。 Also, you can register all the apps under the same suite. 另外,您可以在同一套件下注册所有应用程序。

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

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM