最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

android - net::ERR_UNKNOWN_URL_SCHEME error Vue JS Cordova - Stack Overflow

programmeradmin2浏览0评论

I'm working on a mobile vue JS with Cordova application. We build our application using Monaca IDE. We have a link in our app which opens a LINE invitation link.

In the link, we have to submit a form > after submitting the form, we'll be redirected to a link where we choose if we should open the app or download it from the store.

The problem is when we click the open LINE app button, I got this error:

Web page not available The web page at intent://msg/text/%E3%81%93%E3%81%AE%E7%B4%B9%E4%BB%8B%E7%8A%B6%E3%82%92%E6%8C%81%E3%81%A3%E3%81%A6%E3%81%84%E3%82%8B%E6%96%B9%E9%99%90%E5%AE%9A%EF%BC%81%0A%E4%B8%80%E7%B7%92%E3%81%AB%E9%80%9A%E3%81%8A%E3%81%86%EF%BC%81%E3%81%8A%E5%8F%8B%E9%81%94%E7%B4%B9%E4%BB%8B%E3%82%AD%E3%83%A3%E3%83%B3%E3%83%9A%E3%83%BC%E3%83%B3%E2%99%AA%0A%E3%80%90%E8%A9%B3%E3%81%97%E3%81%8F%E3%81%AF%E3%81%93%E3%81%A1%E3%82%89%E3%80%91%0A%0A%20%20/87N1vzUFdmh3quqFA#Intent;scheme=line;action=android.intent.action.VIEW;category=android.intent.category.BROWSABLE;package=jp.naver.line.android;end could not be loaded because:

net::ERR_UNKNOWN_URL_SCHEME

I tried adding this to my config.xml but its not working:

<platform name="android">
<allow-intent href="intent://*/*"/>
<allow-intent href="line://*"/>
<access origin="line://*"/>
<access origin="*"/>

Also tried this but did not work:

<config-file target="AndroidManifest.xml" parent="/manifest/application">
  <intent-filter>
    <action android:name="android.intent.action.VIEW"/>
    <category android:name="android.intent.category.DEFAULT"/>
    <category android:name="android.intent.category.BROWSABLE"/>
    <data android:scheme="intent" android:host="msg"/>
  </intent-filter>
</config-file>

I use inAppBrowser to open the link inside my app instead of opening it using external browser since that's what the specs says.

发布评论

评论列表(0)

  1. 暂无评论