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

94
April 26, 2022, at 00:10 AM

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?

Answer 1

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.

Rent Charter Buses Company
READ ALSO
gradle: Duplicate value for resources coming from multiple external libraries

gradle: Duplicate value for resources coming from multiple external libraries

I have a situation where I am trying to add two dependencies that have resources conflict

119
Caused by android.app.ForegroundServiceStartNotAllowedException startForegroundService() not allowed due to mAllowStartForeground false

Caused by android.app.ForegroundServiceStartNotAllowedException startForegroundService() not allowed due to mAllowStartForeground false

I have upgrade the Android SDK project 30 to 31Also i am using the the Android Beacon Library for scanning the the iBeacon

194
Capacitor App running only for the first time

Capacitor App running only for the first time

The first time I install my capacitor app on a device the app works correctlyBut if I close my app, and open again the app don’t work anymore and get stuck on the white screen forever

94