如果应用已打开,则深层链接不起作用

时间:2019-08-25 17:44:41

标签: android webview

如果我的应用程序已经打开,请单击邮件中收到的任何链接,Whatsapp会打开我的应用程序,但不会打开单击的链接。

在应用被终止的情况下,它可以打开应用并路由至正确的活动,没有问题。

但是,如果我再次单击另一个链接而没有杀死该应用程序,它将仅打开该应用程序,但不会打开正确的活动。

AndroidManifest.xml

{
   "A": {
      "year": [
         "2012",
         "2013",
         "2014",
         "2015",
         "2016",
         "2017",
         "2018"
      ],
      "eps": [
         938000000,
         724000000,
         740000000,
         713000000,
         692000000,
         504000000,
         381000000
      ],
      "op_revenue": [
         938000000,
         724000000,
         740000000,
         713000000,
         692000000,
         504000000,
         381000000
      ],
      "revenue": [
         938000000,
         724000000,
         740000000,
         713000000,
         692000000,
         504000000,
         381000000
      ]
   },
   "AAL": {
      "year": [
         "2012",
         "2013",
         "2014",
         "2015",
         "2016",
         "2017",
         "2018"
      ],
      "eps": [
         431000000,
         -1833000000,
         -1012000000,
         -752000000,
         -99000000,
         2499000000,
         2951000000
      ],
      "op_revenue": [
         431000000,
         -1833000000,
         -1012000000,
         -752000000,
         -99000000,
         2499000000,
         2951000000
      ],
      "revenue": [
         431000000,
         -1833000000,
         -1012000000,
         -752000000,
         -99000000,
         2499000000,
         2951000000
      ]
   },
   "AAN": {
      "year": [
         "2012",
         "2013",
         "2014",
         "2015",
         "2016",
         "2017",
         "2018"
      ],
      "eps": [
         134624000,
         120666000,
         108005000,
         90656000,
         78813000,
         78233000,
         89137000
      ],
      "op_revenue": [
         134624000,
         120666000,
         108005000,
         90656000,
         78813000,
         78233000,
         89137000
      ],
      "revenue": [
         134624000,
         120666000,
         108005000,
         90656000,
         78813000,
         78233000,
         89137000
      ]
   },
   "AAOI": {
      "year": [
         "2012",
         "2013",
         "2014",
         "2015",
         "2016",
         "2017",
         "2018"
      ],
      "eps": [
         390000,
         -131000,
         -46000,
         1873000,
         3060000,
         4283000,
         3523000
      ],
      "op_revenue": [
         390000,
         -131000,
         -46000,
         1873000,
         3060000,
         4283000,
         3523000
      ],
      "revenue": [
         390000,
         -131000,
         -46000,
         1873000,
         3060000,
         4283000,
         3523000
      ]
   },
   "AAON": {
      "year": [
         "2012",
         "2013",
         "2014",
         "2015",
         "2016",
         "2017",
         "2018"
      ],
      "eps": [
         37359000,
         37547000,
         40229000,
         39473000,
         41391000,
         44158000,
         42735000
      ],
      "op_revenue": [
         37359000,
         37547000,
         40229000,
         39473000,
         41391000,
         44158000,
         42735000
      ],
      "revenue": [
         37359000,
         37547000,
         40229000,
         39473000,
         41391000,
         44158000,
         42735000
      ]
   },
   "AAP": {
      "year": [
         "2012",
         "2013",
         "2014",
         "2015",
         "2016",
         "2017",
         "2018"
      ],
      "eps": [
         407546000,
         391758000,
         417694000,
         440311000,
         458658000,
         493825000,
         494211000
      ],
      "op_revenue": [
         407546000,
         391758000,
         417694000,
         440311000,
         458658000,
         493825000,
         494211000
      ],
      "revenue": [
         407546000,
         391758000,
         417694000,
         440311000,
         458658000,
         493825000,
         494211000
      ]
   }
}

1 个答案:

答案 0 :(得分:0)

尝试删除launchMode="singleInstance"

这表示您只希望活动的一个 实例,这意味着如果在该活动已经存在时触发了深层链接,则它将直接路由到该现有实例。