InstatApps
FlutterでInstantAppsを作ってリリースしたときのログ
Reference:
- https://medium.com/inspireui/how-to-build-flutter-instant-app-with-fluxstore-7d14c4630ae6
- https://wadada420.hatenablog.com/entry/2018/07/25/215159#:~:text=デジタルアセットリンクファイルはするアプリケーションを識別する。
手順
- 対象アプリ.リリース.設定.詳細設定.フォームファクタ.
Google Play Instantを有効化 - アプリ実装
index.htmlのbase.hrefを無効化 ->flutter build web- AndroidStdio作業
SDK Manager.Instant Apps Development SDKをインストールandroidディレクトリ右クリック ->Refactor.Enable Instant Apps SupportTools.App Links Assistants- Step1:
http://xxxxxx.com->.MainActivityhttps://xxxxxx.com->.MainActivity
- Step2:
.well-known/assetlinks.jsonとしてファイルを生成し、サイトへ配置
https://developers.google.com/digital-asset-links/tools/generator?hl=ja ※サイト所有者確認の場合、android:host="XXX"は不要?- SearchConsoleでサイト所有者の確認を行う
- 対象アプリ.リリース.設定.詳細設定.
アプリのインデックス登録でHTTP/HTTPSサイトの所有者確認依頼を送る - 対象アプリ.リリース.設定.アプリの完全性.アプリの署名.
Digital Asset Links JSONをホストに配置
(サイト所有者確認の場合、不要?) - ブラウザからDigital Asset Links APIで確認する
- HTTP:
https://digitalassetlinks.googleapis.com/v1/statements:list?source.web.site=http://xxxxxx.com:80&relation=delegate_permission/common.handle_all_urls - HTTPS:
https://digitalassetlinks.googleapis.com/v1/statements:list?source.web.site=https://xxxxxx.com:443&relation=delegate_permission/common.handle_all_urls
- HTTP:
- Step1:
adb shell am start -a android.intent.action.VIEW -c android.intent.category.BROWSABLE -d "https://xxxxxx.com:443/"
- PlayConsole.製品版.
XXXXXXから通常アプリをリリース - PlayConsole.製品版.
InstantAppsのみからリリース