Issue with App Clip Card Showing "App Clip unavailable" for DIGI LIVE App
In my DIGI LIVE application, I have an App Clip configured for iOS 17.6+ (the file exceeds the 15 MB limit), and I have made all the necessary preparations for the App Clip to work correctly. However, the App Clip card constantly displays an "App Clip unavailable" error for various users (depending on their system language).
The URL associated with the App Clip invocation is: https://ar.digi-live.de
The AASA file is located at /.well-known/apple-app-site-association and contains the required fields for the App Clip:
{
"applinks": {
"details": [
{
"appIDs": ["N9QR6LF765.de.digilive.app"],
"components":[
{
"#": "no_universal_links",
"exclude": true,
"comment": "Matches any URL whose fragment equals no_universal_links and instructs the system not to open it as a universal link"
},
{
"/": "*",
"comment": "Matches any URL like ar.digi-live.de"
}
]
}
]
},
"appclips": {
"apps": ["N9QR6LF765.de.digilive.app.Clip"]
}
}
If I use the default App Clip link (https://appclip.apple.com/id?p=de.digilive.app.Clip) to launch it, the "App Clip unavailable" error no longer appears. But if I delete the App Clip from the settings, the error comes back, and it can only be launched again using the default link.
It feels like the problem is with the App Clip loading at the moment the App Clip card is triggered — it simply fails to load.
Video https://storage.yandexcloud.net/mmrs/files/digilive/IMG_2259.mp4
I'll answer my own question. It turns out the solution is quite simple 😏. To fix this error, you need to reduce the size of the App Clip to less than 15 MB (I managed to do this by adding the -Osize parameter to the Swift compiler settings) and rebuild it for iOS 16.
This is actually mentioned in the official documentation: https://developer.apple.com/documentation/appclip/choosing-the-right-functionality-for-your-app-clip