首页 > 解决方案 > 如何为流星科尔多瓦应用程序建立深层链接?

问题描述

我需要在流星科尔多瓦应用程序中进行深度链接的帮助。我需要一个深层链接,它将通过 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,

用于自定义 URL 的 Cordova 插件

标签: androidcordovameteordeep-linkingurl-scheme

解决方案


推荐阅读