科尔多瓦Android不允许向fb-messenger打开列入白名单的意图

Joc*_*nDB 8 android facebook cordova cordova-plugins ionic3

我有一个适用于Android的Ionic Cordova应用程序,其中有一个指向Facebook Messenger的按钮:

<a href="https://m.me/my-fb-page" target="_blank"><img src="assets/images/messenger.svg" /></a>
Run Code Online (Sandbox Code Playgroud)

轻按时,屏幕上没有任何内容。我一直通过logcat收到此错误:

CordovaWebViewImpl: Blocked (possibly sub-frame) navigation to non-allowed URL: intent://user/xxxxxxxxxxxxx/?intent_trigger=mme&nav=discover#Intent;scheme=fb-messenger;package=com.facebook.orca;end
Run Code Online (Sandbox Code Playgroud)

我安装了cordova-plugin-whitelist。

config.xml的内容:

    ...
    <content src="index.html" />
    <access origin="*" />
    <allow-intent href="http://*/*" />
    <allow-intent href="https://*/*" />
    <allow-navigation href="*" />
    <allow-intent href="tel:*" />
    <allow-intent href="sms:*" />
    <allow-intent href="mailto:*" />
    <allow-intent href="geo:*" />
    <allow-intent href="fb-messenger:*" />
    <platform name="android">
        <allow-intent href="market:*" />
        <allow-intent href="fb-messenger:*" />
        ...
Run Code Online (Sandbox Code Playgroud)

我已经尝试了许多用于允许意图,访问和允许导航的选项。

该问题与Facebook Messenger并不特别相关,我在打开其他外部(支付)应用程序时也遇到了问题

jce*_*ile 4

<allow-navigation href="*" />您告诉您的应用程序导航到每个网址时,这会阻止任何allow-intent网址工作,因为它会尝试导航到该网址而不是启动意图。