Giter Site home page Giter Site logo

Comments (5)

saket avatar saket commented on June 18, 2024 1

Ah yes, the fallback immediately gets called. I'm not doing multithreading. You can try this in the sample app too, by placing the navigateTo() call right after connectTo().

from simple-chrome-custom-tabs.

juankysoriano avatar juankysoriano commented on June 18, 2024

Hello @Saketme

Can you define fails? Do you mean it navigates using the fallback mechanism if available?

connectTo would bind the activity to the services required to make chrome custom tabs work. If you are doing the connection in a thread and the navigation in another there might be a race condition where the service is still not bound at the time the navigation attempt happen.

from simple-chrome-custom-tabs.

juankysoriano avatar juankysoriano commented on June 18, 2024

I will take a look, my assumption right now is that by placing one call just after the other means that the service is not bound on the navigation attempt.

The library will internally check if you have a compatible chrome version installed in your device, and if that's the case will try to open the website using chrome tabs. The check for the chrome version happens internally on connectTo and this is happening on a background thread. There might be then a bug where the navigateTo doesn't wait for that package check to be completed.

from simple-chrome-custom-tabs.

juankysoriano avatar juankysoriano commented on June 18, 2024

Hello @Saketme , the following release is fixing your issue: https://github.com/novoda/simple-chrome-custom-tabs/releases/tag/0.1.5

Thank you for your feedback

from simple-chrome-custom-tabs.

saket avatar saket commented on June 18, 2024

Thanks @juankysoriano!

from simple-chrome-custom-tabs.

Related Issues (18)

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.