英文:
After adding intent filers for firebase dynamic link support app does not listed in app list in android devices
问题
我在Flutter应用中首先在Android清单文件中实现了Firebase动态链接,最初的清单文件中有以下意图过滤器,应用程序在设备应用程序列表中列出:
<intent-filter>
<action android:name="android.intent.action.MAIN"/>
<category android:name="android.intent.category.LAUNCHER"/>
</intent-filter>
但是,在添加以下意图过滤器以支持Firebase动态链接后,应用程序不会显示在应用程序列表中:
<intent-filter>
<action android:name="android.intent.action.MAIN"/>
<category android:name="android.intent.category.LAUNCHER"/>
<action android:name="android.intent.action.VIEW"/>
<category android:name="android.intent.category.DEFAULT"/>
<category android:name="android.intent.category.BROWSABLE"/>
<data
android:host="redbull.page.link"
android:scheme="https"/>
</intent-filter>
我做错了什么吗?
英文:
I'm implemented firebase dynamic links in flutter app at first in android manifiest file has intent filter like below & app is listed in device app list ,
<intent-filter>
<action android:name="android.intent.action.MAIN"/>
<category android:name="android.intent.category.LAUNCHER"/>
</intent-filter>
but after adding below intent filters to support firebase dynamic links app not showing in app list
<intent-filter>
<action android:name="android.intent.action.MAIN"/>
<category android:name="android.intent.category.LAUNCHER"/>
<action android:name="android.intent.action.VIEW"/>
<category android:name="android.intent.category.DEFAULT"/>
<category android:name="android.intent.category.BROWSABLE"/>
<data
android:host="redbull.page.link"
android:scheme="https"/>
</intent-filter>
Am I did something wrong.
答案1
得分: 0
你需要两个意图过滤器,而不是将所有细节嵌套在一个里面。例如:
<intent-filter>
<action android:name="android.intent.action.MAIN"/>
<category android:name="android.intent.category.LAUNCHER"/>
</intent-filter>
<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="redbull.page.link"
android:scheme="https"/>
</intent-filter>
FYI Dynamic Links 服务将很快关闭,因此不建议在新项目中使用。详细信息请参考 https://firebase.google.com/support/dynamic-links-faq
英文:
You need two intent filters rather than nesting both details in one. So for example:
<intent-filter>
<action android:name="android.intent.action.MAIN"/>
<category android:name="android.intent.category.LAUNCHER"/>
</intent-filter>
<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="redbull.page.link"
android:scheme="https"/>
</intent-filter>
FYI Dynamic Links service will shut down soon so using in new projects is not advised https://firebase.google.com/support/dynamic-links-faq
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论