[RN] - Linking

김주형·2023년 12월 14일

뭘 이런걸 다 합니다

목록 보기
19/51

링크는 수신 및 발신 앱 링크와 상호 작용할 수 있는 일반적인 인터페이스를 제공합니다.

모든 링크(URL)에는 URL 체계가 있으며, 일부 웹사이트는 https:// 또는 http://로 접두사가 붙고 http는 URL 체계입니다.

Let's call it scheme for short

Https 외에도, 당신은 mailto 계획에도 익숙할 것입니다.

Mailto 계획으로 링크를 열면, 운영 체제는 설치된 메일 응용 프로그램을 엽니다.

마찬가지로, 전화를 걸고 SMS를 보내는 계획이 있다. 아래의 내장 URL 계획에 대해 더 읽어보세요.

Mailto 체계를 사용하는 것과 마찬가지로, 사용자 지정 URL 체계를 사용하여 다른 응용 프로그램에 연결할 수 있습니다.

For example, when you get a Magic Link email from Slack, the Launch Slack button is an anchor tag with an href that looks something
like: slack://secret/magic-login/other-secret.

Like with Slack, you can tell the operating system that you want to handle a custom scheme.

When the Slack app opens, it receives the URL that was used to open it.

This is often referred to as deep linking.

Read more about how to get the deep link into your app.

Custom URL scheme isn't the only way to open your application on mobile.

You don't want to use a custom URL scheme in links in the email because then the links would be broken on desktop.

Instead, you want to use a regular https links such as https://www.myapp.io/records/1234546.

and on mobile you want that link open your app. Android calls it Deep Links (Universal Links - iOS).

Built-in URL Schemes

As mentioned in the introduction, there are some URL schemes for core functionality that exist on every platform.

The following is a non-exhaustive list, but covers the most commonly used schemes.

profile
우리스러움

0개의 댓글