Android Deep linking: Use the same link for the app and the play store

前端 未结 4 948
醉梦人生
醉梦人生 2020-11-28 02:43

I have a website which enables the user to make a search query. The query might take some time to complete (minutes to days), and I would like to enable the user to download

4条回答
  •  春和景丽
    2020-11-28 03:12

    This question is pretty old but also very popular, so it's definitely worth knowing that now this use case is officially supported by Firebase, precisely Firebase Dynamic Links.

    It supports just opening app and deferred deep linking, which means that after installing app, when app is starting, you can retrieve data (link) that was used to install the app.

    It's built on top of App Linking, so you still need the same intent-filter as before.

    In short, you need to add implementation 'com.google.firebase:firebase-dynamic-links:VERSION' and retrieve link from instance of FirebaseDynamicLinks class.

    Of course you need to change links on website with those generated in Firebase console, but the good news is that these links are "dynamic" (as the name implies) so they work on all systems.

    For all detailed info and set up with that use case up go here: https://firebase.google.com/docs/dynamic-links/use-cases/web-to-app

提交回复
热议问题