Giter VIP home page Giter VIP logo

fdltest's Introduction

What's for ?

This is the tiny sample code for testing Firebase Dynamiclinks issue, which has more detail description below in Issue Description part.

The app only have two activities. MainActivity is declared <action android:name="android.intent.action.MAIN" /> and <category android:name="android.intent.category.LAUNCHER" /> to simulate the app's entry point such as "welcome page" or "launch transition". Every launching process should go into MainActivity, which handles incoming intent by Firebase SDK and pass the target link to RealHomePageActivity. RealHomePageActivity just get the target link and show it on screen.

Issue Description

firebase/firebase-android-sdk#982

If the app is NOT in histroy and open NOT by dynamic links, anything looks fine. But if the app is NOT in histroy and open by dynamic link, this link will be failed until clearing histroy, which "failed" means the open process not through the activity with <action android:name="android.intent.action.MAIN" /> tag and the data in getIntent() is still the old one.

With this app for example the flow will like:

  • User open the app (not in history) by clicking FDL_Reddit which is target to website of Reddit
    -> you will see https://reddit.com on screen
  • User leave the app (not destroy it, like click devices home button)
  • User click the FDL_Google link
    -> you will see https://www.google.com on screen
  • Doing step 2 (leave app) again and click FDL_Reddit
    -> you will see app is open not through MainActivity and still show https://www.google.com on screen
  • Close app and clear the histroy then re-open NOT by dynamiclinks -> you will see https//reddit.com on screen, but it should be null because I'm not open it by dynamic links

With the same logic, if you first open by FDL_Twitter, then you click FDL_Reddit, FDL_Facebook, FDL_Google, FDL_Others, they are all re-launch the MainActivity and work find, just FDL_Twitter will never work again until clearing history.

Testing FDL Links

FDL_Reddit : https://bardxhongfdltest.page.link/REDDIT
FDL_Facebook : https://bardxhongfdltest.page.link/FACEBOOK
FDL_Google : https://bardxhongfdltest.page.link/GOOGLE
FDL_Twitter : https://bardxhongfdltest.page.link/TWITTER

fdltest's People

Contributors

wadexhong avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.