Hi @edorphy,
I'm excited you got your app clip working in Advanced App Clip Experiences. Mine always displays "This URL is not contained in your app’s associated domains. Update associated domains or use a different URL." when I enter an https address even though it appears in my associated domains.
My app clip target's one associated domain is "appclips:mydomain.com" and my app target's association domains are "appclips:mydomain.com" and "applinks:ww.mydomain.com". (It actually has "www" but I can't submit this post with that.) The applinks domain seems to be working since it opens the app when I point my camera at a QR code with this domain.
Even though my app clip works when I launch it from Xcode using _XCAppClipURL, when I launch it from Test Flight, it seems to open with a white background that immediately disappears. Crashes? What should happen?
I'm also not sure what adding App Clip Invocations to Test Flight is supposed to do. What happens after I add one?
Post
Replies
Boosts
Views
Activity
I also put my app only in Test Flight, then tried to create an Advance App Clip Experience. When I specified the App Clip Experience URL, I got the following message:
This URL is not contained in your app’s associated domains. Update associated domains or use a different URL.
I verified that the URL matches what's in my associated domains for my App Clip's target.
Could my 'apple-app-site-association' file also cause this error? I think it's ok. Jsonlint.com verified it, but the Apple tool (https://search.developer.apple.com/appsearch-validation-tool/) returns "Error cannot parse app site association" even though I ensured that Content-Type = application/json in the response.
Thanks for any help!
For anyone else who has this problem in Objective C, I found I needed to do two things: Add "#import <AppClip/NSUserActivity+AppClip.h> to your header file.
Add "AppClip.framework" under your App Clip target's General / Frameworks, Libraries, and Embedded Content.
#1 will allow it compile, but the appClipActivationPayload attribute won't be there in runtime.
#2 will prevent the crash when you try to access the appClipActivationPayload attribute.
Don't forget to add one or more of the following as needed:
#import <AppClip/APBase.h>
#import <AppClip/AppClip.h>
#import <AppClip/APActivationPayload.h>
#import <AppClip/NSUserActivity+AppClip.h>
Should add that I'm using Xcode Version 12.0 beta (12A6159).