Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

App icon missing after implementing Firebase Dynamic Links

After implementing Firebase Dynamic Links, my app icon is missing.

like image 718
Alan Avatar asked Mar 09 '23 09:03

Alan


1 Answers

I had combined the suggested intent filter on my main activity, which prevented the app icon from appearing. Fix this by separating them like so:

<activity
    android:name=".activities.SplashActivity"
    android:label="@string/app_name"
    android:screenOrientation="portrait"
    android:theme="@style/SplashTheme">
    <!--Main activity intent filter-->
    <intent-filter>
        <action android:name="android.intent.action.MAIN" />
        <category android:name="android.intent.category.LAUNCHER" />
    </intent-filter>
    <!--Firebase dynamic links-->
    <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:host="@string/deep_link_uri"
            android:scheme="http" />
        <data
            android:host="@string/deep_link_uri"
            android:scheme="https" />

    </intent-filter>
</activity>
like image 187
Alan Avatar answered Mar 23 '23 16:03

Alan