Handling links in my application

76 views Asked by At

I want handle this URL but my code is not work true.

http://melkplus.com/#!/property/details/765


Actually when I click on this URL, my phone does not suggest me my application and it just open by browser.
I think application has problem with #! in URL.

<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="melkplus.com"
    android:scheme="http"
    android:pathPrefix="/#!/property/details/" />
</intent-filter>
1

There are 1 answers

5
CommonsWare On BEST ANSWER

Everything starting with the # is not part of the path of the URL, but rather is the fragment. You cannot filter on fragments.