简体   繁体   English

如何触发我的iphone应用程序从我的mac应用程序启动

[英]How can i trigger my iphone application to launch from my mac app

I want to launch my app on the device (if App available) using the USB\\Wifi\\Bluetooth connection from my mac app. 我想在我的mac应用程序中使用USB \\ Wifi \\ Bluetooth连接在设备上启动我的应用程序(如果应用程序可用)。

How can I achieve this functionality 我该如何实现此功能

That is NOT possible. 这是不可能的。 You can't do it using any public API. 您无法使用任何公共API执行此操作。 Though i am not aware of any private API that facilitate this types of functionality. 虽然我不知道有任何私有API可以促进这种类型的功能。

This is iPad control Mac's touch bar demo: 这是iPad控制Mac的触控条演示:

  • TouchBarDemoApp Allows you to use your macOS Touch Bar from an iPad (through USB connection) or on-screen by pressing the Fn-key. TouchBarDemoApp允许您通过按下Fn键从iPad(通过USB连接)或屏幕上使用macOS Touch Bar。

Mac control iPhone: Mac控制iPhone:

  • iTunes Mac app can get the iPhone's screenshot and edit iPhone's apps. iTunes Mac应用程序可以获取iPhone的屏幕截图并编辑iPhone的应用程序。
  • Xcode can launch iPhone's apps when you debug ShareExtension . 调试ShareExtension时,Xcode可以启动iPhone的应用程序。

So I think there are some methods to achieve your function. 所以我认为有一些方法可以实现你的功能。 But I don't how to achieve. 但我不知道如何实现。 Maybe its private. 也许是私人的。

As already posted, you cannot directly launch an app. 如上所述,您无法直接启动应用。

But you can make your App show up on the lock screen as well as the task switcher so it can be opened with one click. 但您可以让您的应用程序显示在锁定屏幕和任务切换器上,以便只需单击即可打开它。 This feature is called Handoff . 此功能称为切换

Here is the usage description for the end user and this is the programming guide on how to implement it. 以下是最终用户的使用说明, 是如何实现它的编程指南。

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

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