tweetable icon indicating copy to clipboard operation
tweetable copied to clipboard

Mobile Safari error popup

Open jitendraharpalani58 opened this issue 9 years ago • 4 comments

@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.

jitendraharpalani58 avatar Jul 30 '15 10:07 jitendraharpalani58

Hmm, very interesting. What version of Safari are you running?

omarish avatar Jul 30 '15 17:07 omarish

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.

jitendraharpalani58 avatar Jul 30 '15 19:07 jitendraharpalani58

@omarish any updates or idea on how to fix this?

jitendraharpalani58 avatar Aug 10 '15 14:08 jitendraharpalani58

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) ?

omarish avatar Aug 10 '15 22:08 omarish