R
R
razer892015-10-27 16:16:32
Android
razer89, 2015-10-27 16:16:32

How to implement Deep Linking with unstructured URLs?

Hello! There is a client application that repeats the functionality of the site. Accordingly, it became necessary to organize Deep Linking, so that the links leading to the pages of the site open the necessary pages of the application. The problem is that the link to the company looks like site/company1 or site/company2 , etc. Of course, it would be more logical to do it like this: site/company/1, however, it’s done that way, and this can’t be changed, alas. Of course, you can register an Intent-Filter for the site/ url, but unfortunately there are other URLs like site/v_moskve (leads to a city page, not a company page), or site/article12 (leads to an article, not a company page).
In general, the question is how, without changing the url structure on the site, how to filter companies\articles\cities correctly? Thanks in advance!

Answer the question

In order to leave comments, you need to log in

1 answer(s)
I
IceJOKER, 2015-10-27
@IceJOKER

And you have companies, articles, etc. will open the same activity?
You can create an Intent-Filter for each activity, exactly what this activity will open;
host=mysite.ru
path=/company*
host=mysite.ru
path=/article*
developer.android.com/intl/ru/guide/topics/manifes...
Or catch all URLs with one activity, from there you already redirect to the desired direction (parse the URL and open the desired screen)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question