Updated 30 December 2020
App clip is the mini-app of any main app which provides users to quickly access and experience, what your app has to offer without downloading and installing the full app. It is a small part of your app that’s discoverable at the moment it’s needed. It is fast and lightweight so a user can open them quickly. Whether they’re ordering take-out from a restaurant, renting a scooter, or setting up a new connected appliance for the first time, users will be able to start and finish an experience from your app in seconds. And when they’re done, you can offer the opportunity to download your full app from the App Store.
Consider creating an App Clip if your app provides an in-the-moment experience that helps people perform a task over a finite amount of time. For example:
It must be small — no more than 10 MB for the uncompressed App Clip— to launch instantly. If possible, keep your App Clip well below this limit.
The output folder for your exported App Clip also contains its size report: a file named App Thinning Size Report.txt
. Open the text file, and note your uncompressed size, and make adjustments to your project to keep its uncompressed size below 10 MB.
It comes with limitations to ensure a fast launch experience, protect user privacy, and preserve resources.
It requires a corresponding full app that offers at least the same functionality as the App Clip; you use the same Xcode project for your full app and your clip. If you’re starting a new app project, first create a new iOS project with Xcode. If you want to add a clip to your existing iOS app, open its Xcode project. Then, add the target to the Xcode project:
1 2 3 |
webView.uiDelegate = self webView.navigationDelegate = self webView.load(URLRequest(url: URL(string: "https://mobikul.com/")!)) |
1 2 3 4 5 6 7 |
@IBAction func getAppAction(_ sender: Any) { guard let scene = view.window?.windowScene else { return } let config = SKOverlay.AppClipConfiguration(position: .bottom) let overlay = SKOverlay(configuration: config) overlay.delegate = self overlay.present(in: scene) } |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 |
import StoreKit extension ViewController : SKOverlayDelegate { func storeOverlayDidFailToLoad(_ overlay: SKOverlay, error: Error) { } func storeOverlayWillStartDismissal(_ overlay: SKOverlay, transitionContext: SKOverlay.TransitionContext) { } func storeOverlayWillStartPresentation(_ overlay: SKOverlay, transitionContext: SKOverlay.TransitionContext) { } func storeOverlayDidFinishDismissal(_ overlay: SKOverlay, transitionContext: SKOverlay.TransitionContext) { print("SKOverlay DidFinishDismissal") } func storeOverlayDidFinishPresentation(_ overlay: SKOverlay, transitionContext: SKOverlay.TransitionContext) { print("SKOverlay DidFinishPresentation") } } |
I hope this tutorial will help you if you have any comments, questions, or recommendations, feel free to post them in the comment section below!
If you have more details or questions, you can reply to the received confirmation email.
Back to Home
Be the first to comment.