DEV Community

Zachary Powell
Zachary Powell

Posted on

How long is an App Linking link valid for?

The App Linking service provided by AppGallery Connect, is a great cross platform App link generation service. The SDK supports both Android and iOS. For non-Huawei Android phones, the link can be set to redirect users to the phone's app market, as well as support for fallback URLs.

No matter what device the user is on a Huawei AppGallery Connect App Link will work and direct that user to the best method for installing the app on their device.

But here is the question, does the links create have a validity period? If they do how long can they last?

The link of App Linking can be created in AppGallery Connect manually or via code after your app has been integrated with the SDK. Is there a difference between the validity periods of the links created using the two different methods?

Taking a look at the API reference we find that the SDK for Android and the SDK for iOS both have an API to set the validity period of the link:
For Android: The API is setExpireMinute, and is a time accurate to the minute. A link is valid for two years by default, and the minimum validity period is 5 minutes.
For iOS: The API is expireMinute, and is a time accurate to the minute. A link is valid for two years by default, and the minimum validity period is 5 minutes.

However, there is no description about the validity period of the link on the link creation page in AppGallery Connect.
And there was also an Archive button, what does this do?

image

The Links created in AppGallery Connect are permanently valid if unarchived. Archived links are still valid within one year.
After you click the Archive button, links will be archived but their data will not be traced.
Archived links can still be viewed within seven days. You can filter the links in AppGallery Connect by selecting Archived in last 7 days. You can also click Unarchive in the Operation column to cancel archiving.

image

References:
setExpireMinute
expireMinute
Archiving a Link of App Linking

Top comments (0)