tweetable
tweetable copied to clipboard
Mobile Safari error popup
@omarish on Android devices its working fine.
On iOS though, Safari throws an error popup "Cannot Open Page Safari cannot open the page because the address is invalid" when the app is not installed.
Hmm, very interesting. What version of Safari are you running?
I am using iOS 8.4 safari ..
One more thing is: If the app is installed and I am on chrome, it opens twitter app but also opens twitter page on chrome.
@omarish any updates or idea on how to fix this?
Hm, I can't think of a particular fix right this moment. I think this is happening because of how the library works, particularly with the lag (https://github.com/omarish/tweetable/blob/master/tweetable.js#L6) and delay timeout (https://github.com/omarish/tweetable/blob/master/tweetable.js#L13).
Essentially, the library waits for a set amount of time for the app to open, until it falls back to twitter's website. What happens if you try decreasing the lag timeout (https://github.com/omarish/tweetable/blob/master/tweetable.js#L6) ?