App Clips

RSS for tag

Provide a way to quickly access and experience what your app has to offer. An app clip is a small part of your app that lets users start and finish an experience in seconds, even before downloading your app.

App Clips Documentation

Posts under App Clips tag

102 Posts
Sort by:
Post not yet marked as solved
7 Replies
2.6k Views
I'm having issues trying to debug an issue with smart banners. I implemented application: openURL: sourceApplication: annotation in the AppDelegate and this works correctly for a JS window.open forced redirect form the server as well as typing in the urlScheme://path in the browser. However, the smart banner app-argument seems to be passing something different.If I look in the source of a webpage and type the exact same app-argument as what the smart banner has into safari, I'm deep-linked appropriately in my app. If I click the smart banner, then something happens for my code not to parse it properly.It looks like XCode 6 or iOS8 broke the ability to test smart banners by overriding an app store install with XCode. Now if I try to install an XCode build over an app store install, the smart banner will want me to reinstall the app from the App Store.There must be a way to test smart banners other than crossing your fingers and pushing to production?Thanks!
Posted
by
Post marked as solved
6 Replies
1.9k Views
The following code can connect to the host successfully on iOS Simulator. But the code fails to connect on an iOS device. I has checked the WLAN and Cellular Data are both allowed for the app clip. I also try NSURLSession to access to a web site. NSURLSession is successful to get the data on both iOS simulator and iOS devices. Do we allow to use socket streams in App Clips? Xcode Version 12.0 beta (12A6159) iOS 14 Beta: 14.0 But the code fails to connect on   CFReadStreamRef readStream;   CFWriteStreamRef writeStream;       //create socket connection   CFStreamCreatePairWithSocketToHost(NULL, (__bridge CFStringRef)@"www.baidu.com", 443, &readStream, &writeStream);   NSInputStream* inputStream = (__bridge_transfer NSInputStream*)readStream;   NSOutputStream* outputStream = (__bridge_transfer NSOutputStream*)writeStream;       [inputStream setProperty:NSStreamSocketSecurityLevelNegotiatedSSL            forKey:NSStreamSocketSecurityLevelKey];   // and open the streams   [inputStream open];   [outputStream open]; Console output: [connection] nw_socket_connect [C1.1:1] connectx(5, [srcif=0, srcaddr=<NULL>, dstaddr=61.135.169.121:443], SAE_ASSOCID_ANY, 0, NULL, 0, NULL, SAE_CONNID_ANY) failed: [65: No route to host] [connection] nw_socket_connect [C1.1:1] connectx failed (fd 5) [65: No route to host] [] nw_socket_connect connectx failed [65: No route to host] [connection] nw_socket_connect [C1.2:1] connectx(5, [srcif=0, srcaddr=<NULL>, dstaddr=61.135.169.125:443], SAE_ASSOCID_ANY, 0, NULL, 0, NULL, SAE_CONNID_ANY) failed: [65: No route to host] [connection] nw_socket_connect [C1.2:1] connectx failed (fd 5) [65: No route to host] [] nw_socket_connect connectx failed [65: No route to host] [connection] nw_connection_get_connected_socket [C1] Client called nw_connection_get_connected_socket on unconnected nw_connection TCP Conn 0x280200370 Failed : error 0:65 [65]
Posted
by
Post not yet marked as solved
8 Replies
2k Views
In the documentation for Developing a Great App Clip - https://developer.apple.com/documentation/app_clips/developing_a_great_app_clip under Understand How Users Launch App Clips it says users launch app clips by tapping a link that someone has shared in the Messages app. What about links from other places? What about a link from Mail.app or from a different messaging app or from web search result? Do App Clip links behave the same as Universal Links?
Posted
by
Post not yet marked as solved
8 Replies
2.5k Views
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.
Posted
by
Post not yet marked as solved
2 Replies
532 Views
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!
Posted
by
Post marked as solved
4 Replies
1.3k Views
I'm building an app based entirely on CloudKit and I'm super excited for technologies like App Clip to make a mini 'menu' version of said app. The main app target allows vendor/site location managers to update their menu in real time and then signed in iCloud users can subscribe to those public record updates. I just discovered in the technology limitations of App Clips that CloudKit is out. It isn't in the list of 'supported capabilities' in the project editor. Additionally, as one would expect, trying to create a CKContainer without the entitlement in the App Clip target crashes with a fatal error due to the lack of that very entitlement. This feels unnecessarily restrictive and excludes developers from supporting App Clips who build their server tech stack on CloudKit. Write capability isn't needed for my concept. Effectively I'd want for each unique venue to be able to continue to manager their menu/venue via CloudKit + Security Roles and allow updating content in the main app--and for users to view/browse with focused location/venue specific menus in the app clip. As recommended, the full app has to be installed for the full experience. I'd rather not attempt to hit the public database via the JS library, or making an API proxy that just invokes CloudKit web tech under the hood. I really think supporting read operations from the public CloudKit database would enable many experiences that are currently restricted due to this limitation. If someone at Apple is watching, I created FB8528010 feature request with a little more details on my new feature concept.
Posted
by
Post marked as solved
5 Replies
929 Views
Hi, Until Xcode 12 beta 4, everything was fine but since beta 5 I don't see _XCAppClipURL having any effect. The userActivity delegate isn't called. Is anyone facing this?
Posted
by
Post not yet marked as solved
0 Replies
596 Views
Hi all. I'm trying to send a push notification to my app clip from AWS SNS, and I think I've done everything required: Set 'Requests ephemeral user notifications' to YES in the app clip's info.plist. Enabled and configured the Push Notification requirement for my app clip identifier at developer.apple.com (i.e. new certificates for prod and sandbox) Created a new AWS SNS Push platform applications and configured them with the new push notification certificates. Created a topic and registered an app clip endpoint for the topic Send a notification to the topic that includes "target-content-id" = App Clip experience invocation url I can see in my database that I got the token and created the SNS endpoint, and I can see in AWS CloudWatch that I sent the message successfully to the endpoint. However, didReceiveRemoteNotification in the app clip's AppDelegate never gets called. The same setup works fine in the corresponding app. Any ideas or things to try? Thanks!
Posted
by
Post not yet marked as solved
4 Replies
1.6k Views
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?
Posted
by
Post not yet marked as solved
19 Replies
3.4k Views
I was excited to have my updated app with an app clip just approved for sale in the App Store. It's been working great for a couple of weeks via Test Flight. But when I scan my QR code with the Control Panel QR Code Scanner, I get the dreaded grey/white card with the "This app clip is not currently available in your country or region" message. Anyone else see their app clip working in production? Is there anything I need to do to fix the problem, do I just need to wait a little longer, or is this an Apple bug?
Posted
by
Post not yet marked as solved
1 Replies
654 Views
Hello, I set up multiple Advanced App Clips experiences with some attached to locations in Apple Maps. But it never appears on those locations in the Maps app. However, the App Clips perfectly launch when scanned from a QR Code, but the App Banner in Safari does not appear if the App is not already installed on my phone. Does anyone know how to debug and fix this issue? Or maybe I am missing something, a review of such Advanced App Clips Experiences linked to Maps perhaps?
Posted
by
Post not yet marked as solved
3 Replies
478 Views
Hi everyone, I have 3 domains (only for development) + 1 domain for production. For example: 3 domains: (for development) https://beta1.example.com https://beta2.example.com https://beta3.example.com 1 domain: (for production) https://example.com I configured universal links for app clips with these domains and uploaded the same apple-app-site-association file to these 4 domains. However, I found that when I add advanced App Clip Experiences to AppStore connect, there are only app clip experiences of 1 domain validated successfully. (For example, only app clip experiences like https://beta3.example.com/id validated successfully, the other app clip experiences of https://beta1.example.com , https://beta2.example.com and https://example.com were invalid with the message “This URL is not contained in your app’s associated domains. Update associated domains or use a different URL.” (regardless of the domains in each build) . I suppose that app clip experiences of 4 domains should be validated successfully. Would anybody please help me?
Posted
by
Post marked as solved
2 Replies
394 Views
I can see App Clips banner only when app is installed. But see nothing when isn't installed. My .well-known/apple-app-site-association file: &#9;"applinks": { &#9;&#9;&#9;"apps": [], &#9;&#9;&#9;"details": [ &#9;&#9;&#9;&#9;&#9; { &#9;&#9;&#9;&#9;&#9;&#9; "appID":&#9;"ABCDEFG.com.mywebsite.MYAPP", &#9;&#9;&#9;&#9;&#9;&#9; "components": [ &#9;&#9;&#9;&#9;&#9;&#9;&#9; { &#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;"/": "/abc", &#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;"comment": "Matches any URL" &#9;&#9;&#9;&#9;&#9;&#9;&#9; } &#9;&#9;&#9;&#9;&#9;&#9;&#9; ] &#9;&#9;&#9;&#9;&#9; } &#9;&#9;&#9; ] &#9; }, &#9; "webcredentials": { &#9;&#9;&#9;"apps": [ "ABCDEFG.com.mywebsite.MYAPP" ] &#9; }, &#9;&#9;"appclips": { &#9;&#9;&#9;&#9;"apps": ["ABCDEFG.com.mywebsite.MYAPP.Clip"] &#9;&#9;} } Associated Domains in the app target and App Clips target are the same: webcredentials, applinks and appclips with my domain. On the App Store Connect domain Validated and Advanced App Clip Experiences is created. Banner on the website: <meta name="apple-itunes-app" content="app-id=1234567890, app-clip-bundle-id=com.mywebsite.MYAPP.Clip"> Where can be a problem?
Posted
by
Post not yet marked as solved
2 Replies
466 Views
I'm working on a UIKit-based App Clip and full app that respond to app-based life-cycle events. The clip looks fine, it launches correctly. However, when I take a screenshot, the method application(_:continue:restorationHandler:) is triggered again (the activity is the same that triggered the clip in the first place, and type is NSUserActivityTypeBrowsingWeb). Is this a known issue?
Posted
by
Post marked as solved
9 Replies
2.1k Views
Our users faced the problem with App Clips usage, and some of them can't use this experience due to the next problem: There is a billing problem with a Previous Purchase View and correct the problem in your billing info. If you cancel , you may not be able to buy until this billing issue has been resolved. When some of our users tried to open App Clips card, they were getting billing problem popup, but at the same time they could download app from App Store without any problem. This popup blocks any possibilities for further actions with App Clips. Moreover, all information are correct and right. What we discover in one iPhone, is that it has pending payment for iCloud storage, but don't charge. But any possibilities to fix this user don't have. How can we fix it? Ask you for help :(
Posted
by
Post not yet marked as solved
24 Replies
7.9k Views
Hello everyone, I'm trying to create an App Clip for my existing app (it's a multiplatform app). Now Xcode can't sign my app, and the following error appears: Provisioning profile "iOS Team Provisioning Profile: xx" doesn't match the entitlements file's value for the com.apple.developer.associated-appclip-app-identifiers entitlement. If I don't add that row in my project's entitlement then I can sign my app but I can't upload it to App Store Connect, telling me that the value is missing. I've tried to delete the saved profiles in my Mac and force Xcode to download them again. I started thinking about if you can create an App Clip for a multiplatform project or even if it's a bug in Xcode 12.5 beta 3. Does anyone experienced the same or have some suggestion to try? Thank you! Aniol
Posted
by