当外部配件通过 BT 配对或插入基座连接器时如何启动 iphone 应用程序 [英] How to launch an iphone app when an external accessory is either paired over BT or plugged into dock connector

查看:16
本文介绍了当外部配件通过 BT 配对或插入基座连接器时如何启动 iphone 应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在网上对此进行了彻底的研究,当外部配件使用 BT 配对或插入基座连接器时,找不到任何有关自动启动 iphone 应用程序的信息.

I have researched this to death online and cannot find anything regarding auto launching an iphone app when an external accessory is either paired using BT or plugged into the dock connector.

我们是 MFi 开发人员,拥有 BT 配件和应用程序,我们希望在配对时启动.我们有包含我们的协议的 Info.plist 和包含所有工作和通信的正确协议的设备.该应用程序与我们的 BT 设备配合良好,但我希望在配对时看到该应用程序启动.

We are an MFi developer with a BT accessory and application that we would like to launch when paired. We have the Info.plist containing our protocols and the device containing the correct protocol all working and communicating. The application works well with our BT device, however I would like to see the app launch when paired.

我以前在连接器中插入附件时见过这种情况,我很想知道这是如何实现的.

I have seen this before with accessories plugged into the connector and would live to know how that is accomplished.

http://www.metacafe.com/watch/5772611/ces_2011_withings/

在视频中的 3:15 查看.

Check at 3:15 in the video.

iPhone 是否具有让坞站连接项目自动启动的能力?

Does iPhone just have that ability for dock connected items to auto start?

我知道在安装应用程序时,外部附件框架会向 iPhone 注册协议.这就是 iPhone/iPod 在您连接 BT(或连接器)设备并且您没有用于连接设备协议的应用程序时知道将您带到苹果商店的方式.

I know that the External Accessory framework registers the protocol with the iPhone when the app is installed. This is how the iPhone/iPod knows to take you to the apple store when you connect a BT (or connector) device and you don't have an app for your connected devices protocol.

我不明白为什么配对时应用程序没有启动,我认为这很简单.有人可以对这个话题有所了解.我发现的最好的是来自 Apples 文档:

I don't understand why the app does not launch when paired, I would think this would be a no brainer. Can someone please shed some light on this topic. The best I found is from Apples docs:

能够与外部附件通信的应用程序应在其 Info.plist 文件中声明它们支持的 ?protocols.声明对特定协议的支持让系统知道您的应用程序可以在连接该附件时启动.如果没有应用程序支持连接的配件,系统可能会选择启动 App Store 并指出支持的应用程序."

Applications that are able to communicate with an external accessory should declare the ?protocols they support in their Info.plist file. Declaring support for specific protocols lets the system know that your application can be launched when that accessory is connected. If no application supports the connected accessory, the system may choose to launch the App Store and point out applications that do."

我无法理解可以选择发射"的意思,这是否意味着也选择发射?请帮忙.

I cannot understand the meaning by "may choose to launch", does this mean is also chooses to launch? Please help.

推荐答案

设备制造商需要在固件级别包含对此功能的支持.这个过程的细节目前通过 MFi(为 iPhone/iPod 制造)保密协议保密,所以不幸的是,这是我能提供的所有细节.祝你好运!

The manufacturer of the device needs to include support for this feature at the firmware level. The details of this process are currently confidential by way of the MFi (Made For iPhone/iPod) non disclosure agreement, so unfortunately that is all the detail I can provide. Good luck!

这篇关于当外部配件通过 BT 配对或插入基座连接器时如何启动 iphone 应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆