4
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

TWA(Trusted Web Activity) アプリを aab(Android App Bundle) でリリースするときは気をつけてください!

Last updated at Posted at 2019-05-23

はじめに

TWA は、 PWA サイトのアプリ版を簡単に作れる便利なやつです。

TWA の仕組みとして、 PWA サイト側に 「信頼して良いか」 を判断するための設定ファイル .well-known/assetlinks.json を配置する必要があります。

今回その設定ファイルの値を間違っていたせいでハマったので、ぼくと同じ人が現れないように記事にしておきます。
誰かの助けになれば幸いです 🙏

気をつけること

.well-known/assetlinks.jsonsha256_cert_fingerprints の値

どうするのか

スクリーンショット 2019-05-23 13.07.36.png

Google Play Console - リリース管理 - アプリの署名 で、上記画像の該当箇所を確認してください。
これを間違えると、URLバーが永遠に出続けてしまいます。。

似たような見た目で 「アップロード証明書」 という項目がありますがソチラではありません!
(aab ファイルでリリースしていない場合は画像のような画面は表示されないようです。)

(おまけ) apk でリリースする場合

keytool -list -v -keystore Keystoreファイルパス -alias エイリアス名 -storepass パスワード -keypass パスワード

上記コマンドで出力される SHA256 の値を設定すれば良いです。

4
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
4
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?