Comments (5)
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.
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.
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.
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.
Thanks @juankysoriano!
from simple-chrome-custom-tabs.
Related Issues (18)
- EasyCustomTabsIntentBuilder always requires a connection HOT 3
- no java-rx HOT 4
- Consider predefined navigation fallbacks HOT 1
- Allow browser selection. HOT 1
- Implement ease custom action - SHARE HOT 3
- Include example of navigation using Linkify HOT 3
- Causes RunTimeException HOT 6
- Consider fallback for connectivity issues HOT 3
- Add more commands - mayLaunchUrl ... HOT 5
- Runtime crash in SimpleChromeCustomTabs HOT 1
- Provide HTTP request error fallback HOT 1
- Weird behavior on back/close pressed HOT 4
- java.lang.NoSuchMethodError crash on Android 7.1 HOT 3
- Snackbar incorrect in samples when Chrome T&C not yet accepted HOT 1
- Min SDK 15 HOT 2
- Wrong action value when using androidx HOT 2
- Missing a Callback on SimpleChromeCustomTabs.connectTo(Activity activity) HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from simple-chrome-custom-tabs.