Search code examples
androidexpodeep-linkingreact-native-deep-linking

How to get sha256_cert_fingerprints for assetlinks.json for Expo?


Instructions for android universal deep links requires you to upload .well-known/assetlinks.json for verification. Expo deep linking documentation points you to format the file per official android documentation, but the documentation assumes you are using android studio to build your app. https://developer.android.com/training/app-links/verify-site-associations

sha256_cert_fingerprints: The SHA256 fingerprints of your app’s signing certificate. You can use the following command to generate the fingerprint via the Java keytool: keytool -list -v -keystore my-release-key.keystore

The documentation also is unclear about what the value of namespace needs to be.


Solution

  • I Just wanted to put this out here for any Expo users, I spent way too much time trying to sort through this when the answer is super simple. Fortunately google provides the entire JSON file for you within the Console play store additionally we don't need to change the namespace as this namespace field is not specific to the app, leave it as android_app

    Navigate to: Google Play Store > All Apps > Select the app in question > Setup > App integrity

    At the top there is a tab called "App signing" enter image description here


    Next Scroll to the bottom and you'll see a field that contains all the JSON you need that you can copy into your file: App Store Screenshot