android - 如何为流星科尔多瓦应用程序建立深层链接?
问题描述
我需要在流星科尔多瓦应用程序中进行深度链接的帮助。我需要一个深层链接,它将通过 webview 而不是浏览器在我的应用程序中打开特定路线。
到目前为止,我已经设法在我的应用程序中创建了指向根路由的深层链接,但我一直坚持将其重定向到特定页面/路由。
这是我到目前为止的代码:
移动配置.js:
App.configurePlugin('cordova-plugin-customurlscheme', {
URL_SCHEME: 'smartpiggybank'
});
客户端/startup.js:
handleOpenUrl = function handleOpenURL(url) {
const token = url.replace("smartpiggybank://intesaSuccess", "https://backdashboard.smartshopping.network");
console.log("Token: " + token);
FlowRouter.go('/outletLast');
}
路由器:FlowRouter,
解决方案
推荐阅读
- tomcat - Tomcat 中的多个 HTTPS 连接器使用不同的证书
- r - 如何将 summary() 的结果显示为绘图/grob?
- azure - 将 az storage 命令与 azurite 一起使用
- ruby-on-rails - Pundit 使用非直接关联模型授权索引操作
- android - 警报管理器设置为同一时间 onReceive 仅调用一次
- java - 无法将名称 [org.hibernate.dialect.MYSQL5Dialect] 解析为策略 [org.hibernate.dialect.Dialect]
- php - 查询不考虑传入参数的日期范围
- angular - 使用 Angular 材料按列过滤谓词表
- kubernetes - 将日志从 kubernetes 转发到 splunk
- eclipse - 使用`make`创建Eclipse项目?