defund12 / defund12.org

defund12.org
https://defund12.org/
MIT License
181 stars 80 forks source link

Email continuously prompts when re-opening mobile browser #1464

Open christinalin opened 4 years ago

christinalin commented 4 years ago

Bug report

Hi! Found your site through a shared post on instagram, it's awesome...but I was experiencing this very spammy feeling bug which is that every time I opened my mobile Chrome browser, there was a prompt to open the mobile email client. See here for a visual of what's happening. I had to uninstall/reinstall Chrome to fix it.

Having trouble reproducing it after reinstalling, but I believe it was caused by the following.

  1. In a fresh Chrome window, open defund12.org.
  2. Scroll down to NY / New York. Click link
  3. Click Send Email
  4. Close email draft. Close Chrome app
  5. Open Chrome (See NY defund12 page briefly before prompt). Expected: Should view normal chrome window without prompt Actual: Prompt to open email appears at bottom of screen. Clicking email re-opens prepopulated email. Chrome on my phone has the toggle "Ask me which app to use every time" so the prompt shows up. But I tried turning that off and the behavior changes so that every time you open chrome, it automatically opens the email client instead of prompting
NickCrews commented 4 years ago

Hey @christinalin thanks for sharing this.

I think the root cause of the issue is that we make defund12.org/nyc automatically redirect to a mailto: link, so that people can just share that URL and it's a zero click way to have an email ready to go.

So when you reopen Chrome (and also when you delete the browsing history) it looks like it reloads the most recent page (which then redirects to the mailto:)? I'm curious, is it possible for you to select cancel when the Create mail tab slides up?

NickCrews commented 4 years ago

Ye know, I just tried going to defund12.org/nyc on Chrome on Android, and it doesn't redirect to mailto at all, I'd guess because chrome wants a user action to be required to trigger the mailto (Chrome on iOS is really safari under the hood, so that may be why it's different).

The redirect does happen for me on OSX Chrome, but there it doesn't feel as spammy because it doesn't happen every time I switch apps...

I don't have an iOS device so I can't test better :( It would be great if you wanted to take a look into it.

christinalin commented 4 years ago

@NickCrews i took a stab at "fixing" this in this pr #1542 but really just proposed a new feature 😂 hope that's ok