Shobhit Puri
Shobhit Puri

Reputation: 26017

Does assetlinks.json file for Android App Links have a size limit like the iOS counterpart?

In order to only allow authorized apps to open https links, Android has App Links, and iOS has Universal Links. In both, one needs to upload a file, viz. assetlinks.json for Android and apple-app-site-association file for iOS on https://domain.name/.well-known/ path. I could find that for iOS, the file size can be max 128 KB, however, couldn't find any such information for assetlinks.json. Is there a size limit for it?

Upvotes: 1

Views: 2543

Answers (2)

ImalshaG
ImalshaG

Reputation: 31

I have recently done some testing with the assetlinks.json file and found out that the size limit is around 100kB. The validation started failing once the response size exceeded 102kB.

Upvotes: 3

Ankit Wala
Ankit Wala

Reputation: 132

Officially there is no limit mentioned any where in the document. But when I have tried using Branch.io common link in my app, the app links verification was failing when app was installed. Figured out the same from the logs and the reason for the same was read timeout.

The file hosted here is very huge and mentions a lot of apps which support Branch's bnc.lt links.

https://bnc.lt/.well-known/assetlinks.json

Which causes it to fail as Android fails to verify the same during installation and hence also causes other links configured also not to work.

A file link with just 8-10 apps won't be that huge and won't cause a problem.

Upvotes: 1

Related Questions