Post not yet marked as solved
In a SwiftUI app with app clips, taking a screenshot in the app clip triggers a NSUserActivityTypeWeb event. Sometimes the webpageURL is the same as the invocation URL which launched the app clip, other times it is a previous URL which launched another app clip experience. This does not happen when taking a screenshot from the iOS simulator and it does not happen when taking a screenshot within the full app.
Post not yet marked as solved
Last week I finally finished setting up my first App Clip by following the documentation made by Apple.
However, there is a pesky bug I can't seem to iron out and it's somehow related to the .onContinueUserActivity(NSUserActivityTypeBrowsingWeb) getting called more than once when testing the app clip.
It runs great on the first try, but afterwards it behaves as if there was already a url stored in cache or something of the sort. I change this URL by changing the _XCAppClipURL environment variable on the App Clip Scheme.
.onContinueUserActivity(NSUserActivityTypeBrowsingWeb) { userActivity in
										guard let incomingURL = userActivity.webpageURL,
													let components = NSURLComponents(url: incomingURL, resolvingAgainstBaseURL: true) else {
												return
										}
										print(incomingURL)
}
This works great on the first run; it gets called only once.
After the first run, it will call one of the older URLs I passed and the new one. It will also call them on different orders, sometimes the older one first, sometimes the new one first.
I'd appreciate any advice or theories you can come up with, all help is appreciated!
Thanks!
Post not yet marked as solved
Hello,
I am creating an app which includes an AppClip. I added the Clip in the build phases (as an Embed AppClip), I use everywhere the good BundleID (either the parent app, or the clip) but when I'm archiving the app, and then I distribute it, i'm still getting this error: IDEFoundation.AssociatedAppClipIdentifiersFilterErrors error 1
I can't figure why this happen, it's the first Clip I do and deploy so it's all new to me.
Post not yet marked as solved
I create a clips, and upload to store, have a error:
ITMS-90876: Missing entitlement - This app contains an app clip. The entitlement 'com.apple.developer.associated-appclip-app-identifiers' should be present and include the value of the app clip's application identifier.
I had seting clip's entitlements file infomation:
com.apple.developer.on-demand-install-capable is YES;
Parent Application Identifiers array has $(AppIdentifierPrefix)com.myproject.
so, how to solve this error?
Post not yet marked as solved
Does the Size limit refers to size of Sample.ipa/App Clips/Sample AppClip.app ?
But in the Sample App provided by apple FrutaBuildingAFeatureRichAppWithSwiftUI - https://developer.apple.com/documentation/swiftui/fruta_building_a_feature-rich_app_with_swiftui, App Clip Size is around 38 MB.
I am testing App Clip on Testflight to show App Clip Card but it only shows a white Card with the message: “This app clip is not currently available in your country or region” (if using Local Expreriences, it shows normally)
I have fully installed apple-app-site-association, App Clip Experience, Domain URL Status also validated ... don't understand why, is the app "Redy For Sale" new to show the Card?. I want to let customers test show App Clip Card without using Local Expreriences on Testflight
If anyone knows, please help, thank you.
Post not yet marked as solved
Hello Everyone, I'm trying to view status for my app clip associated domain from the Build MetaData in TestFlight tab, but it keeps giving me "No Domain URL Status data".
Also, when I'm trying to create advanced experience by adding my invocation domain (https://appclip.example.com) to the App Clip Experience URL, I'm getting "This URL is not contained in your app’s associated domains. Update associated domains or use a different URL."
Here's my configurations:
Associated Domain in both App Clip Target & Main App Target is (appclips:appclip.example.com).
The AASA file is added with no redirects on (https://fully-qualified-domain/apple-app-site-association) & Content-Type is application/json.
{
"applinks": {
"apps": [],
"details": [
{
"appID": "1234567890.com.example.appName",
"paths": ["/*"]
}]
},
"appclips": {
"apps": [
"1234567890.com.example.appName.Clip"
]
}
}
My Questions
What's missed for not obtaining Domain URL Status data when tapping view status?
Why I'm getting "This URL is not contained in your app’s associated domains" when I'm trying to create advanced experience although this domain is already in Associated Domains ?
The invocation url (https://appclip.example.com) is redirecting to (https://example.com) on the website. Does that may cause an issue ?
Please note that I have included (appclips:example.com) also in the Associated Domains & tried to create advanced experience using (https://example.com) but I got the same issues.
Thanks in advance!
Post not yet marked as solved
Hello,
I am getting started with designing an App Clip and I am trying to create an App Clip Code but cannot find the download for this tool.
The tool does not show up as a downloadable item using the link provided throughout the Apple website:
https://developer.apple.com/download/more/?=App%20Clip
Thank you,
Ryan
Post not yet marked as solved
I would like to create some UI tests for an App Clip.
But when adding the UI Test target, I am unable to select the app clip target as the target to be tested (It's greyed out).
The only target I can add is the "real" app.
Any suggestions? Isn't it possible, or do I need to configure it somehow?
Post not yet marked as solved
Hello
Are there any limitations on the quantity of the QR-codes which it is possible to generate for app clips in https://appstoreconnect.apple.com/appclips/ui/app-experiences
Is there an api for adding and downloading qr codes?
Post not yet marked as solved
We have implemented app clip smart banner in our website (https://www.cpf.gov.sg/member) and published our app. Unfortunately the app clip smart banner not appearing.
We have another domain (for UAT) and the app clip smart banner is working fine.
Both Domain URL Status in App Store connect showing "Validated".
Website smart banner setting:
<meta name="apple-itunes-app" content="app-id=389277976, app-clip-bundle-id=gov.sg.cpf.mycpf.Clip">
But we are not seeing the app clip banner. Would like to seek help urgently please.
Post not yet marked as solved
can we disable the app clip when the main app opens?
our main app has NFC service, and NFC tag also can trigger
the app clip, so it will make users confuse. thank!
Post not yet marked as solved
Hi, when trying to test my app clip, if there's no link in the _XCAppClipURL environment variable in the scheme (Or TestFlight invocation), userActivity.webpageURL is "https://example.com" even though I don't have this link anywhere in my project.
This is my code for getting the link (I'm using UI:
func scene(_ scene: UIScene, continue userActivity: NSUserActivity) {
guard userActivity.activityType == NSUserActivityTypeBrowsingWeb,
let incomingURL = userActivity.webpageURL else {
return
}
print("Incoming URL: \(incomingURL)")
}
I removed _XCAppClipURL from the environment variables in the scheme and when I run the code I get:
Incoming URL: https://example.com
Is this a bug? How can I get rid of this https://example.com URL?
Post not yet marked as solved
The documentation states that a user can:
choose to view the website with the Smart App Banner instead of launching the App Clip. Both Safari and an SFSafariViewController remember the user's decision and won't display the App Clip card when the user visits the site again.
I tried this out on my device and indeed now I don't see the App Clip card anymore on my site.
How can I reset this preference so I see the App Clip card again?
Does this apply to all app clip experiences with the same base domain?
E.g. If I choose "View in Safari" on an App Clip card on https://example.com/experience1, then later visit https://example.com/experience2 would Safari show the App Clip card? If not, what if it were subdomains? (experience1.example.com, experience2.example.com)
Thanks!
Post not yet marked as solved
Hi Everyone, I am trying to get my advanced app clip experience set up but having a world of problems. I have sset up associated domains (for both app and app clip) and an aasa file on the website, with the json validated.
appclips:sign.zoho.com
appclips:sign.zoho.eu
and my aasa is:
{
"appclips": {
"apps": [
"TZ824L8Y37.com.zoho.sign.AppClip"
]
},
"applinks": {
"apps": [],
"details": [
{
"appID": "TZ824L8Y37.com.zoho.sign",
"paths": [
"*"
]
},
{
"appID": "TZ824L8Y37.maccatalyst.com.zoho.sign",
"paths": [
"*"
]
}
]
}
}
When I go to make the app clip experience, no matter how I type the url into the app clip experience url field, i always get:
This URL is not contained in your app’s associated domains. Update associated domains or use a different URL.
when i select the build it says "Invalid Entitlement: Missing Section"
what am I missing?
Post not yet marked as solved
I have created app-clip and uploaded in testflight.
I need to invoke the app-clip using the NFC tag. it does work well in Development mode.
Now i have uploaded AASA on the website it contains the details like below.
{
"appclips": {
"apps": [ "123456789.com.mycompanyname.myapp" ]
}
}
i have added associated domain in main app and in app clip both.
added appclip and applink . cause i have seen this way in
one of the question from this forum.
but i am facing this from two days.
What can go wrong here ? Having no clue on this. Am i missing any steps here. As my testflight appclip is getting crashed.
Post not yet marked as solved
According to the documentation, for app clips:
If a user returns to a previously launched App Clip from the App Library or Spotlight, the App Clip uses the invocation URL that it previously used to launch the App Clip.
Is there a way to see whether the invocation URL that is passed to the app is simply the cached URL from a e.g. Spotlight launch vs. whether it has actually come from an app clip invocation method like NFC/QR?
Alternatively, is there a way to disable this caching altogether?
Post not yet marked as solved
Hi!
I have recently published an App Clip and I would like my App Clip Card to show up on my website, just like in this example : https://firigames.com/phoenix2
However, for now, I only managed to get a banner redirecting to the AppStore to obtain the full app : https://wilkinsavenueappclip.com/
Although, it is worth noting that the App Clip card shows up correctly when scanning an App Clip Code (associated with my website url).
Here are the steps I have done for now :
Completing the apple-app-site-association file with my team Id and the bundle Id of my App Clip
Adding the meta tag to my index.html file on my website :
<meta name="apple-itunes-app" content="app-clip-bundle-id=myAppBundleId, app-id=myAppId, app-clip-display=card">
Adding the associated domains entitlement to my App Clip (the domain is approved in App Store Connect)
What am I missing?
Thanks a lot for your help!
Post not yet marked as solved
We have dozens of specific app clips and would like to be able to see the statistics for each one as an individual. The overall analytics are great but we are looking for granular analytics. Am I missing it somewhere?
Post not yet marked as solved
We have 2 developer accounts, one Developer and an Enterprise account which are used for distributing the same app, on the same company.
We've recently added support for AppClip in our app, and of course, set up everything on AppStoreConnect.
But as we need to produce 2 IPAs, one adhoc, using the developer account, and another one using the Enterprise account for internal distribution, we stumbled upon an error while archiving the Enterprise app, that was:
The capability associated with “ON_DEMAND_INSTALL_CAPABLE” could not be determined. Please file a bug report at feedbackassistant) and include the Update Signing report from the Report navigator.
Xcode couldn’t find any iOS App Development provisioning profiles matching [BUNDLE_ID_OF_APP_CLIP].
The error make sense, as AppClips are not available for Enterprise accounts and that’s fine, we don’t want to have AppClip on Enterprise build, of course.
What we would like to know is: how can we selectively use that capability com.apple.developer.on-demand-install-capable for one scheme, but not for the other one? Without compromising our Enterprise build?
The only way we found out to bypass this problem was: on build time, removing the AppClip target - but we would like to have a better approach that would not lead someone to commit the changes to pbxproj by accident.
I see that I can’t remove the capability from the Signing & Capabilities tab for the enterprise scheme.
Any chance this could be done somehow?
References
https://stackoverflow.com/questions/62797507/xcode-can-not-create-provisioning-profile-for-app-clip-automatically
https://developer.apple.com/documentation/bundleresources/entitlements/com_apple_developer_on-demand-install-capable
https://developer.apple.com/forums/thread/650938