简体   繁体   English

从另一个应用程序在 ios 中启动应用程序的 URL 方案的替代方案?

[英]alternative of URL scheme for launching application in ios from another application?

Target Application is not having any URL scheme, and i want invoke it with my application.目标应用程序没有任何 URL 方案,我想用我的应用程序调用它。 I also want to redirect to Apple store if the user doesn't have that application installed.如果用户没有安装该应用程序,我还想重定向到 Apple 商店。 Please tell me if there is any other way to open an application from Cordova plugin or JavaScript.请告诉我是否有任何其他方法可以从 Cordova 插件或 JavaScript 打开应用程序。 Thanks in advance.提前致谢。

Sorry.对不起。 But unless you have a jailbroken device, there's no way to open another app other than via URL scheme, ie (Swift): UIApplication.open(_:options:completionHandler:) This is so by intention since Apple wants the apps sandboxed and therefore strictly limits the ways apps can interact.但是除非你有一个越狱的设备,除了通过 URL 方案之外没有办法打开另一个应用程序,即 (Swift): UIApplication.open(_:options:completionHandler:)这是有意为之,因为 Apple 希望应用程序被沙盒化,因此严格限制应用程序交互的方式。 Launching via URL is the only way they permit app launching.通过 URL 启动是他们允许应用启动的唯一方式。

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

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