I also had not been able to see an app clip "in action," so I read ZK's instructions very carefully and figured out two things I had done wrong. Hopefully this will help others. Note that those instructions also worked for my app in Test Flight.
Step 3 - Enter the bundle ID, not the app ID, in Settings / Developer / Local Experiences. The bundle ID does not start with the team ID; it usually starts with "com".
Step 5 - Enable the optional QR Code Reader in Control Center and use it to read your QR Code. DO NOT use the Camera app with its built-in QR Code Reader. For some reason, the Camera app does not invoke the app clip card. Is this a bug? I haven't checked to see if it works in the iOS 14 GM Camera app.
Edit - Looks like @bumbleparrot provided the same information and more at the same time!
Post
Replies
Boosts
Views
Activity
Invalid Entitlement: Missing Section...
Have you enabled the Associated Domains capability for both your app and appclip targets? Is your appclips domain listed in both places?
appclips:www.yourdomain.com
Thread 659936 is asking a very similar question which may help you.
@otaliptus, assuming your (.Clip) app ID is correct, I'm wondering if when you go to
https://ourwebsite.com
that your server is redirecting to
http://www.ourwebsite.com
then to
https://www.ourwebsite.com
or something like that.
Redirect Detective or sites like that might help you determine what's going on. If there are redirects happening, you may be able to fix it by including www in your domain:
www.ourwebsite.com
I had the same issue. I also noticed I didn't have the issue if I unchecked the Upload Symbols and Bitcode option.
What fixed everything for me: In your Podfile, add the app clip Target with "use\_modular\_headers!" and include all pods needed for the app clip.
In your app clip target / General settings, under Frameworks, Libraries, and Embedded Content, add AppClip.Framework (Do Not Embed) and the app clip pods framework (Do Not Embed).
I also have a dynamic framework project in my Workspace and added that framework with Embed & Sign.
I never had to use pod deintegrate and never added any new scripts.
Hope this helps...
Thanks , Apple Staff!
However, it would be great to be able to see App Clip cards appear with apps installed via Test Flight at some point in the future.
@jordi, it looks like your AASA file is not valid JSON.
Postman should return the file as content type application/json when you GET the url to the AASA file. (Not sure it's still actually required, but doesn't hurt.)
The app clip ID should match what you see when you click on the build number in the App Store Connect under "entitlements."
Just tried again in iOS beta 8, and they still don't work. Are Apple engineers looking at these threads?
After waiting for a while for Apple's cache to expire (under App Store Connect "Cache Status"), we just uploaded a new build and it immediately refreshed.
i had the same issue, and I’m pretty sure the problem was a bad apple-app-site-association file and corresponding associated domains in my App Clip target and Test Flight. The only reliable way to check the file I’ve found is in App Store Connect under the Build section / Domain Status. It must be all green. Apple’s validator tool does not work correctly.
My App Clip experience urls will: iOS 14+ Be a deep link into my app if installed or present my App Clip Card if not.
iOS 13- Be a deep link into my app if installed or will open the url in Safari if not. Then, if the user agent is iOS, my web server will redirect the user to my app in the App Store. You might want the user to see your website that includes an App Store button, but in any case the urls should “work” and not return a 404!
When you click on the build number in the App Store "Activity" tab, does it show the same app clip App ID? Generally, they look like this:
"123456789.com.mycompanyname.myapp.Clip"
If so, is the apple-app-site-association file in the .well-known subdirectory and served with Content-Type = application/json? You can use Postman to GET that file and check for that plus any other abnormalities with the way it's served.
I can also confirm that I can't get the Card to appear after using iOS Beta 6.
And my Advanced App Clip Experiences in App Store Connect also show a green "Received" status, not "Published."
I figured out my problem...
If you the message "This URL is not contained in your app’s associated domains. Update associated domains or use a different URL." when trying to create an Advanced App Clip Experience in App Store Connect, it may have nothing to do with the associated domain entitlement in your app, but have everything to do with a bad apple-app-site-association file on your server.
My apple-app-site-association file did not have the correct app id. Once I fixed that, it took a few minutes, but then I was able to see that it was valid in the App Store Connect / Build / DOMAIN STATUS by clicking "View Status" and then clicking "Load Debug Status." Note: the apple tool to validate apple-app-site-association files DOES NOT WORK and will likely give you a JSON error. Apple needs to fix it.
Also note that the "CACHE STATUS" must be green before you can create an Advanced App Clip Experience. If you don't want to wait for the cache to expire (over an hour), just upload a new version of your app.
Did you check the box next to _XCAppClipURL? :)