gpt4 book ai didi

javascript - Cordova Firebase 身份验证步骤 7 "universal-links "

转载 作者:行者123 更新时间:2023-11-28 12:15:15 25 4
gpt4 key购买 nike

我按照步骤一一进行here 。但是第7步有问题。

第 7 步:

<universal-links>
<host name="DYNAMIC_LINK_DOMAIN" scheme="https" />
<host name="AUTH_DOMAIN" scheme="https">
<path url="/__/auth/callback"/>
</host>
</universal-links>

添加 config.xml 后,“cordova run android”不起作用。

配置.xml:

<?xml version='1.0' encoding='utf-8'?>
<widget id="com.twobuddy.hybrtnkk" version="1.0.0" xmlns="http://www.w3.org/ns/widgets" xmlns:cdv="http://cordova.apache.org/ns/1.0">
<name>NeKadarKaldi</name>
<description>
A sample Apache Cordova application that responds to the deviceready event.
</description>
<author email="dev@cordova.apache.org" href="http://cordova.io">
Apache Cordova Team
</author>
<content src="index.html" />
<plugin name="cordova-plugin-whitelist" spec="1" />
<preference name="AndroidLaunchMode" value="singleTask" />
<access origin="*" />
<allow-intent href="http://*/*" />
<allow-intent href="https://*/*" />
<allow-intent href="tel:*" />
<allow-intent href="sms:*" />
<allow-intent href="mailto:*" />
<allow-intent href="geo:*" />
<platform name="android">
<allow-intent href="market:*" />
</platform>
<platform name="ios">
<allow-intent href="itms:*" />
<allow-intent href="itms-apps:*" />
</platform>
<plugin name="cordova-plugin-x-socialsharing" spec="^5.4.0" />
<plugin name="cordova-plugin-buildinfo" spec="^2.0.1" />
<plugin name="cordova-plugin-browsertab" spec="^0.2.0" />
<plugin name="cordova-plugin-inappbrowser" spec="^3.0.0" />
<plugin name="cordova-plugin-customurlscheme" spec="^4.3.0">
<variable name="URL_SCHEME" value="com.twobuddy.hybrtnkk" />
<variable name="ANDROID_SCHEME" value=" " />
<variable name="ANDROID_HOST" value=" " />
<variable name="ANDROID_PATHPREFIX" value="/" />
</plugin>

<universal-links>
<host name="DYNAMIC_LINK_DOMAIN" scheme="https" />
<host name="AUTH_DOMAIN" scheme="https">
<path url="/__/auth/callback"/>
</host>
</universal-links>

<plugin name="cordova-universal-links-plugin" spec="^1.2.1" />
<engine name="ios" spec="^4.5.4" />
<engine name="android" spec="^7.0.0" />
</widget>

最佳答案

尝试使用通用链接插件的修改版本。可以在这里找到https://github.com/walteram/cordova-universal-links-plugin

使用cordova插件添加https://github.com/walteram/cordova-universal-links-plugin.git安装它

这对我有用!

我在这里找到了答案https://github.com/nordnet/cordova-universal-links-plugin/issues/133

关于javascript - Cordova Firebase 身份验证步骤 7 "universal-links ",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/51001567/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com