Android - ユーザーイベント後のディープリンク
概要
In some cases the user is required to go through some kind of an event before continuing to application page pointed by deep linking destination.
Examples for such user events:
- ログインプロセス
- スプラッシュ画面
- 利用規約への同意
実装
In order to sync easily and safely between the user event and the deferred deep linking flow, it is recommended to initiate and start the SDK in the activity context
ユーザーイベントが実行される場所(例:ログインプロセスを実装するビューなど)これは、SDK と で開始および開始される通常のフローとは異なります。 application context
.
The callbacks which are used in the Extended Deferred Deep Linking flow should also be called in the activity context
.
It is the developer's responsibility to save the deferred deep linking and direct deep linking data, route the user to the required destination only after the event is performed.
コードの例
このGithubブランチでは、ディープリンク先に進む前に疑似ユーザー認証を待つコードサンプルを見つけることができます。認証が検証されると、ユーザーはデスティネーションに転送されます。このフローは、ディファードディープリンクとダイレクトディープリンク(アプリがすでにインストールされている場合)の両方に関連しています。
アプリケーションコンテキスト に AppsFlyer SDK コードがないことがわかります。AppsFlyerコードは、ユーザーイベントを実行する アクティビティ に完全に移動されました。
更新済 21日