はじめに
- 実装なしで画面表示時にダイアログを出せます
画面
ダイアログが出た際の表示
実装
applicationレベルのgradle
build.gradle(app)
dependencies {
〜
// core
implementation "com.google.firebase:firebase-core:17.4.0"
// InAppMessaging
implementation 'com.google.firebase:firebase-inappmessaging-display:19.0.6'
}
Activityの実装なし
おわりに
別アプリでは問題なく、初回インストール直後の起動で問題無く表示されましたが、
今回のサンプルではなぜかインストールして直後では表示されず、
インストール→アプリキャッシュクリア→再度アプリ表示にてダイアログが表示されました。
原因わかる方ご指摘い頂けますと幸いです。
ソースコードはこちら