cordova-plugin-inappbrowser 干扰电话:和短信:
cordova-plugin-inappbrowser interferes with tel: and sms:
我在 Cordova 7 上,我注意到当我添加 cordova-plugin-inappbrowser@1.7.1 时,它破坏了我的 tel:
和 sms:
链接=15=] 在 iOS 和 Android.
这是我从 JS 发出的调用:
window.open(`sms:1231231234}`, '_self');
这是我在 config.xml 中设置访问块的方法:
<allow-intent href="tel:*" />
<allow-intent href="geo:*" />
<allow-intent href="mailto:*" />
<allow-intent href="sms:*" />
<allow-intent href="market:*" />
<allow-intent href="itms:*" />
<allow-intent href="itms-apps:*" />
<access origin="*" />
以下是我目前使用的插件:
cordova-plugin-camera@2.4.1
cordova-plugin-console@1.0.7
cordova-plugin-crosswalk-certificate@2.0.1
cordova-plugin-crosswalk-webview@2.3.0
cordova-plugin-device@1.1.6
cordova-plugin-google-analytics@1.7.11
cordova-plugin-splashscreen@4.0.3
cordova-plugin-statusbar@2.2.3
cordova-plugin-whitelist@1.3.2
ionic-plugin-keyboard@2.2.1
知道如何避免这种情况吗?我只需要 InAppBrowser 打开外部网页,但我需要我的 phone 链接才能继续工作。
您是否尝试将这些添加到配置文件中?
<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:*" />
这对我有帮助。
使用这些插件让它工作:
call-number@https://github.com/Rohfosho/CordovaCallNumberPlugin.git#7d6e87569b101a0abb3ba9259f17bfec0b1719d7
cordova-plugin-camera@2.4.1
cordova-plugin-console@1.0.7
cordova-plugin-crosswalk-certificate@2.0.1
cordova-plugin-crosswalk-webview@2.3.0
cordova-plugin-device@1.1.6
cordova-plugin-email@1.2.6
cordova-plugin-google-analytics@1.7.11
cordova-plugin-inappbrowser@1.7.1
cordova-plugin-splashscreen@4.0.3
cordova-plugin-statusbar@2.2.3
cordova-plugin-whitelist@1.3.2
cordova-sms-plugin@0.1.11
ionic-plugin-keyboard@2.2.1
我在 Cordova 7 上,我注意到当我添加 cordova-plugin-inappbrowser@1.7.1 时,它破坏了我的 tel:
和 sms:
链接=15=] 在 iOS 和 Android.
这是我从 JS 发出的调用:
window.open(`sms:1231231234}`, '_self');
这是我在 config.xml 中设置访问块的方法:
<allow-intent href="tel:*" />
<allow-intent href="geo:*" />
<allow-intent href="mailto:*" />
<allow-intent href="sms:*" />
<allow-intent href="market:*" />
<allow-intent href="itms:*" />
<allow-intent href="itms-apps:*" />
<access origin="*" />
以下是我目前使用的插件:
cordova-plugin-camera@2.4.1
cordova-plugin-console@1.0.7
cordova-plugin-crosswalk-certificate@2.0.1
cordova-plugin-crosswalk-webview@2.3.0
cordova-plugin-device@1.1.6
cordova-plugin-google-analytics@1.7.11
cordova-plugin-splashscreen@4.0.3
cordova-plugin-statusbar@2.2.3
cordova-plugin-whitelist@1.3.2
ionic-plugin-keyboard@2.2.1
知道如何避免这种情况吗?我只需要 InAppBrowser 打开外部网页,但我需要我的 phone 链接才能继续工作。
您是否尝试将这些添加到配置文件中?
<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:*" />
这对我有帮助。
使用这些插件让它工作:
call-number@https://github.com/Rohfosho/CordovaCallNumberPlugin.git#7d6e87569b101a0abb3ba9259f17bfec0b1719d7
cordova-plugin-camera@2.4.1
cordova-plugin-console@1.0.7
cordova-plugin-crosswalk-certificate@2.0.1
cordova-plugin-crosswalk-webview@2.3.0
cordova-plugin-device@1.1.6
cordova-plugin-email@1.2.6
cordova-plugin-google-analytics@1.7.11
cordova-plugin-inappbrowser@1.7.1
cordova-plugin-splashscreen@4.0.3
cordova-plugin-statusbar@2.2.3
cordova-plugin-whitelist@1.3.2
cordova-sms-plugin@0.1.11
ionic-plugin-keyboard@2.2.1