0

分析のために、アプリを起動する URL/URI に関するデータを収集しています。

インテントとデータを調べて、それを開始した URI を特定すると、次を使用します。

getIntent().getData()

多くの場合、URI の形式は「custom://123456789」です (さまざまな大きな数字が表示されます)。

その Uri 形式で起動される原因を理解し、それらのケースを統計から安全に除外できるかどうかを知りたいです。

リクエストに応じて: これは、ランチャーから開始するか、ドメインの URL をクリックしてキャッチするインテント フィルターを使用したマニフェストのアクティビティ エントリです。

    <activity
            android:name=".ui.activity.MainActivity"
            android:clearTaskOnLaunch="true"
            android:configChanges="locale|orientation|keyboardHidden|screenSize"
            android:label="@string/app_name"
            android:launchMode="singleTask">
        <intent-filter>
            <action android:name="android.intent.action.MAIN"/>
            <category android:name="android.intent.category.LAUNCHER"/>
        </intent-filter>

    <!-- Capture the opening of the app via a link to app.tuenti.com -->
    <intent-filter>
        <action android:name="android.intent.action.VIEW"/>
        <category android:name="android.intent.category.DEFAULT"/>
        <category android:name="android.intent.category.BROWSABLE"/>
        <data android:scheme="http" android:host="mydomain.com"/>
        <data android:scheme="https" android:host="mydomain.com"/>
    </intent-filter>
</activity>
4

0 に答える 0