N
N
Nikolai2020-07-12 11:57:13
Android
Nikolai, 2020-07-12 11:57:13

What's wrong with the intent-filter in my manifest?

Greetings. I made an intent-filter in the application manifest in order to open links of my site in webview. Here is a piece of code

<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:host="*.xn--.xn--p1ai"
          android:scheme="http" />
        <data
          android:host="*.xn--.xn--p1ai"
          android:scheme="https" />
        <data
          android:host="*.сайт.рф"
          android:scheme="http" />
        <data
          android:host="*.сайт.рф"
          android:scheme="https" />
</intent-filter>

When you click on the subdomain.site.rf link, a list of applications with mine pops up, and everything seems to work, but if the link is subdomain.site.rf / category / material, then the material does not open and the start page opens instead, i.e. subdomain.site.rf.
Maybe it's because the initial html page is inside the application? How to fix it? Google does not give me anything understandable

PS links in the intent filter are intentionally changed

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question