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.

Here is Solutions:

We have many solutions to this problem, But we recommend you to use the first solution because it is tested & true solution that will 100% work for you.

Solution 1

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

Scroll to the bottom and you’ll see a field that contains all the JSON you need that you can copy into your file: How to get sha256_cert_fingerprints for assetlinks.json for Expo?

Note: Use and implement solution 1 because this method fully tested our system.
Thank you 🙂

All methods was sourced from stackoverflow.com or stackexchange.com, is licensed under cc by-sa 2.5, cc by-sa 3.0 and cc by-sa 4.0

Leave a Reply