Mobile

[React Native] Deep Linking

J1Eun 2024. 3. 5. 16:26

https://docs.expo.dev/guides/deep-linking/#heres-an-example-aasa-json-from-apples

 

Deep linking

Learn how to use app/universal links to open your app from a standard web URL.

docs.expo.dev

 

app.json > android 하위에 intentFilters 내용 추가

public/.well-known/assetlinks.json 파일 생성

[
  {
    "relation": ["delegate_permission/common.handle_all_urls"],
    "target": {
      "namespace": "android_app",
      "package_name": "{package_name}",
      "sha256_cert_fingerprints": [
        // Supports multiple fingerprints for different apps and keys
        "{sha256_cert_fingerprints}"
      ]
    }
  }
]

 

* package_name : 설정한 프로젝트 패키지 명

* sha256_cer_fingerprints : npx eas credentials -p android 해서 나온 SHA256 Fingerprint 값