是否可以通过 IOS 或 Android 商店深入 link(将数据从 url 传递到应用程序安装)

Is it possible to to deep link through IOS or Android stores (pass data from url to app install)

我想知道是否可以发送 URL link 从 IOS 或 Android 应用程序商店下载并安装应用程序并获得应用程序打开到特定页面。 IE 在安装过程中以某种方式从 URL 应用程序传递数据。

谢谢

我意识到我回答的问题与要求的不同,但如果在某些奇怪的情况下有人能够使用我的答案,我会留下答案。

对于iOS:
首先,您必须注册您的自定义 URL 方案。我可以推荐以下 this tutorial

对于处理传入的 URL 可能有更好的方法,但我只是在 AppDelegate.swift 中实现 func application(application: UIApplication, openURL url: NSURL, sourceApplication: String?, annotation: AnyObject) -> Bool 然后进行字符串拆分(或任何适合你的 URL re expecting),并据此构建我的导航堆栈。

例如:

func application(application: UIApplication, openURL url: NSURL, sourceApplication: String?, annotation: AnyObject) -> Bool {
    if let navigationController = self.window?.rootViewController as? UINavigationController {
        if url.absoluteString.contains("/messages") {
            let myIntroViewController = navigationController!.storyboard!.instantiateViewControllerWithIdentifier("Intro") as! IntroViewController
            let messagesViewController = navigationController!.storyboard!.instantiateViewControllerWithIdentifier("Messages") as! MessagesViewController

            navigationController.viewControllers = [myIntroViewController, messagesViewController]
        }
        ...
    }
}

试用分支 SDK。请关注这个link

https://dev.branch.io/getting-started/sdk-integration-guide/guide/android/

你知道 Firebase 动态链接吗?我认为这正是您要搜索的内容,请参阅此处:https://firebase.google.com/docs/dynamic-links/