首页 文章

如何在Android / iOS应用程序中打开Trello URL

提问于
浏览
0

我需要找到一种方法来编写包含过滤器的工作Trello url,并且可以被移动应用程序识别 .

我需要这个网址才能被Trello Android / iOS应用程序识别 . Trello应用程序将在点击链接后预先应用过滤器自动打开,例如:我需要创建一个URL,在浏览器中单击后将用户重定向到Trello Android应用程序并仅显示label = important的卡片(网址示例:https://trello.com/b/NdwRiUrT/list?menu=filter&filter=label:important

我发现这篇文章http://help.trello.com/article/824-sharing-links-to-cards-and-boards,并且链接到卡和板很容易,这正是我期望它工作的方式:

  • 用户单击该链接

  • Trello Android应用程序识别该链接并打开

  • 用户仅显示链接中的卡

Is there an easy way to achieve this with filters included in the url?

1 回答

  • 0

    您需要使用与firebase的深层链接创建URL . 点击操作执行后,网址将重定向到移动应用 . 请参考我在节点js中实现的以下代码 .

    request({
        url: "https://firebasedynamiclinks.googleapis.com/v1/shortLinks?key=YourAppKey",
        method: 'POST',
        body: {
          "dynamicLinkInfo": {
            "dynamicLinkDomain": "domain",
            "link": "your url",
            "androidInfo": {
              "androidPackageName": "trello app package name",
              "androidFallbackLink": "https://play.google.com/store/apps/details?id=trello app package name&hl=en",
              "androidMinPackageVersionCode": "1",
              "androidLink": "Your link",
            },
            "iosInfo": {
              "iosBundleId": "trello app bundle ID",
              "iosCustomScheme": "App name",
              "iosIpadBundleId": "trello app bundle ID",
              "iosAppStoreId": "trello app store ID"
            },
            "socialMetaTagInfo": {
              "socialTitle": "App title",
              "socialDescription": "description",
              "socialImageLink": "Icon link if any"
            }
          },
          "suffix": {
            "option": "SHORT"
          }
        },
        json: true
      }
    

相关问题