Show in-app messages
If you want to display a message (dialog, etc.) in the application, it can be realized by using the in-app message function.
アプリ内メッセージは、inappmessaging
モジュールを導入することで利用可能です。
アプリ内メッセージは、SDKから送信したイベントをトリガーに配信され、その後SDKにより自動的にアプリケーション上に表示されます。
Installation procedure
アプリの build.gradle (app)
を任意のエディタで開き、dependencies
ブロックに inappmessaging
モジュールを追加します。
dependencies {
implementation 'io.karte.android:inappmessaging:2.+'
}
Implementation procedure
アプリ内メッセージを表示する上で、アプリ側の実装は不要です。
一方でアプリケーション側から細かい制御を行いたい場合は実装が必要になる場合もあります。
アプリ内メッセージの表示を制御する
アプリ側から表示を制御したい場合は、こちら をご覧ください。
アプリ内メッセージ上でのリンククリックをトリガーにアプリ内の特定画面に遷移させる
アプリ内メッセージ上でのリンククリックをトリガーにアプリ内の特定画面に遷移させたい場合は、カスタムURLスキームを処理するための実装を事前に行う必要があります。
詳細については、こちら をご覧ください。
Operation check
-
Implement event sending process
Implement an event that acts as a delivery trigger for the customer service.
For sending events, Send an event Please refer to the. -
Create customer service
Create a customer service on the administration screen.
To learn how to create a customer service, Flow of customer service creation Please refer to the. -
Confirm with application
Start the application, perform the operation that sends the event implemented in 1., and confirm that the customer service set in 2. is delivered and displayed.
trouble shooting
アプリ内の他の要素と表示が重複する、隠れてしまうような場合には、Windowの表示レベルに従い適宜アプリ側での設定が必要です。
アプリ内メッセージが表示されない場合は、KARTE for App接客が配信されない場合のチェックリスト を参考にしてください。
Updated over 1 year ago
アプリ内メッセージについて理解を深めるために、以下のドキュメントも併せてご覧ください。