Skip to content

Snappy1

  • Home
  • Android
  • What
  • How
  • Is
  • Can
  • Does
  • Do
  • Why
  • Are
  • Who
  • Toggle search form

[FIXED] android – Is there a way to open an app without a launcher using firebase dynamic Iink?

Posted on November 11, 2022 By

Solution 1 :

In general, one intent filter has nothing to do with any other intent filter. That server does not respond with a .well-known/assetlinks.json – which means, that autoVerify="true" will fail. Consult the logcat output; it should complain about the failed verification.

One can check such .well-known/assetlinks.json with digitalassetlinks.googleapis.com.
When hosting a proper .well-known/assetlinks.json there, the response should look different:

{
  "maxAge": "600s",
  "debugString": "********************* ERRORS *********************n
                  None!n
                  ********************* INFO MESSAGES *********************n
                  * Info: No statements were found that match your queryn"
}

The Statement List Generator and Tester can be used to generate such an assetlinks.json.


One can also setup the <activity /> for implicit deep-linking:

<nav-graph android_value="@navigation/nav_graph"/>

Then use FragmentActivity to handle the deep link Intent with Navigation component.
Also see create an explicit deep link. It’s not so difficult when Navigation is set up already.

Problem :

I’m currently creating a video player plugin app for my streaming website. This is because most browser don’t support some codecs. The app don’t have to show in the launcher category so I add this xml code to get rid of launcher icon.

<application
        android_allowBackup="true"
        android_icon="@mipmap/ic_launcher"
        android_label="@string/app_name"
        android_roundIcon="@mipmap/ic_launcher_round"
        android_supportsRtl="true"
        android_theme="@style/Theme.MyApplication"
        android_usesCleartextTraffic="true" >
        <activity
            android_name=".MainActivity"
            android_exported="true" >
            <intent-filter>
                <action android_name="android.intent.action.MAIN" />
            </intent-filter>
            <intent-filter android_autoVerify="true" >
                <action android_name="android.intent.action.VIEW" />

                <category android_name="android.intent.category.DEFAULT" />
                <category android_name="android.intent.category.BROWSABLE" />

                <data
                    android_host="streameo.page.link"
                    android_scheme="https" />
            </intent-filter>
        </activity>
    </application>

But when I integrate Firebase dynamic link, it’s not opening app, but after adding the launcher category back it’s working. Is there a work around?

Comments

Comment posted by Oasis Inc

I remove autoVerify from intent-filter still can’t open app, since their is no category.launcher in AndroidManifest.xml.

READ  [FIXED] android - Inserted data not being shown in the database
Powered by Inline Related Posts

Comment posted by Oasis Inc

The problem is not firebase-dynamic link not working, but app not opening when no category.launcher declared in activity.

Comment posted by Martin Zeitler

Without auto-verify this link is not verified either – and I never claimed that. Try adding

Comment posted by Oasis Inc

Problem now is that I can’t get link in activity. it’s returning null .

Android Tags:android, android-intent, firebase-dynamic-links, intentfilter

Post navigation

Previous Post: [FIXED] android – How to detect when third party app’s dialog box appears in React native?
Next Post: [FIXED] android – Get the list of user SIM cards and select it – flutter

Related Posts

[FIXED] Flutter app with oidc working on android 7 but not working on v9 and v10 Android
[FIXED] android – java.util.concurrent.ExecutionException: com.google.gson.JsonSyntaxException: 2020-01-15 15:13:42.0 Android
[FIXED] android – Open DialogFragment in an some Activity using AndroidX library, still’s possible? Android
[FIXED] Android Resize all elements for different screen sizes Android
[FIXED] android – Admob Native ads in Recyclerview andriod studio Android
[FIXED] java – How to Implement Auto Image Slider inside Fragment Android

Archives

  • March 2023
  • February 2023
  • January 2023
  • December 2022
  • November 2022
  • October 2022
  • September 2022

Categories

  • ¿Cómo
  • ¿Cuál
  • ¿Cuándo
  • ¿Cuántas
  • ¿Cuánto
  • ¿Qué
  • Android
  • Are
  • At
  • C'est
  • Can
  • Comment
  • Did
  • Do
  • Does
  • Est-ce
  • Est-il
  • For
  • Has
  • Hat
  • How
  • In
  • Is
  • Ist
  • Kann
  • Où
  • Pourquoi
  • Quand
  • Quel
  • Quelle
  • Quelles
  • Quels
  • Qui
  • Should
  • Sind
  • Sollte
  • Uncategorized
  • Wann
  • Warum
  • Was
  • Welche
  • Welchen
  • Welcher
  • Welches
  • Were
  • What
  • What's
  • When
  • Where
  • Which
  • Who
  • Who's
  • Why
  • Wie
  • Will
  • Wird
  • Wo
  • Woher
  • you can create a selvedge edge: You can make the edges of garter stitch more smooth by slipping the first stitch of every row.2022-02-04
  • you really only need to know two patterns: garter stitch

Recent Posts

  • Can VPN be traced by police?
  • Where were Kaiser-Frazer cars built?
  • How do you make gold rose gold paint?
  • What are the newest type of dentures?
  • Can you wear joggers as dress pants?

Recent Comments

No comments to show.

Copyright © 2023 Snappy1.

Powered by PressBook Grid Dark theme