Hello friends. In this article, we will talk about what is App Clip. Apple first introduced the basic functions of our application in WWDC 2020, the structure that we can use without downloading the application. With App Clip, there is no longer a need to install the application to perform the basic functions of our applications. There are many applications that we go through and use to order from the mobile application. No need to download apps for these anymore. With the app clip, we can use simple functions.
How to Use App Clip?
There are multiple ways you can use App Clip. These;
- NFC Tag
- Visual Codes
For example, when we scan a QR code or enter a website, we can now open our App Clip application directly. In this way, the user does not have to download an application that he will not actually use much.
While using App Clip, we need to consider many changes and restrictions. The most important limitation in my opinion is that the app size for App Clip should not be over 10 mb. Apart from this, we cannot use the features we use in a normal application here. Because Apple is a company that attaches great importance to user privacy and for this reason, App Clip cannot use a lot of data.
- We cannot use many libraries that we use in normal applications for App Clip. These; Assets Library, Background Tasks, CallKit, CareKit, CloudKit, Contacts, Contacts UI, Core Motion, EventKit, EventKit UI, File Provider, File Provider UI, HealthKit, HomeKit, Media Player, Messages, Message UI, PhotoKit, ResearchKit, SensorKit ve Speech.
- When we get the location for App Clip from the user, we can use it up to 4 the next day. Apple then won’t let us use this
How Creates App Clip?
To create an app clip, you can create it to add to an existing project or with the projects you will create new. An important issue here is that we should set the bundle id in App Clip applications in the same way as our normal application and to add “.clip” to the end. As an example, the bundle id of my application is “com.omersezer.app”. If I am going to create an App Clip for this, its id should be “com.sezeromer.app.clip”. We can use the codes and assets we use in our normal application in the same way, but Apple also allows us to write special codes for our App Clip and our normal application. For this, it is enough to make a small check in our source code.
// Code you don't want to use in your App Clip.
// Code your App Clip may access.
If you want to get more information, you can reach here.