Universal link only on subdomain not on top level domain

In our iOS app we have added example.com in associated domains from the very beginning With no AASA file hosted at example.com domain

Now we need a subdomain app.example.com to be intercepted in our app, so for the same, we are thinking to host AASA at app.example.com and add app.example.com in associated domains too.

so my question is will hosting AASA at sub domain works? If yes, will it affect older apps where app.example.com is not handled.

In short we only want the links with app.example.com to be open in our app not the example.com links

If you serve the file at the root of your subdomain and no redirects occur, it should be fine.

Actually I want to know that hosting AASA at app.example.com domain affect links https://example.com.

Will the links starting with https://example.com also start to come in apps? I do not want it. I only want the links starting with https://app.example.com to come in the app.

If you are hosting it in the root folder of your subdomain it shouldn't have an effect on your original domain.

Universal link only on subdomain not on top level domain
 
 
Q